From: ccc31807 on
http://nostarch.com/mugperl.htm

cheat sheet is here:

http://nostarch.com/mugperl_big.htm

The cheat sheet appears to be targeted more to the casual user rather
than to the daily grind. I wondering what would appear on a cheat
sheet for journeymen Perlistas. My nomination would include the ||=
operator.

CC
From: John Bokma on
ccc31807 <cartercc(a)gmail.com> writes:

> http://nostarch.com/mugperl.htm
>
> cheat sheet is here:
>
> http://nostarch.com/mugperl_big.htm
>
> The cheat sheet appears to be targeted more to the casual user rather
> than to the daily grind. I wondering what would appear on a cheat
> sheet for journeymen Perlistas. My nomination would include the ||=
> operator.

IMO ||= is used a lot in a way I wouldn't use it. On older perl I use
an explicit defined test, e.g.

defined $foo or $foo = 'bar';

on recent perl I use //=

As for what I would put on a cheat sheet:
http://johnbokma.com/perl/perl-quick-reference-card.html

Note that it's outdated, and probably incomplete. I hope to have time
soon to add the more recent stuff to it, and also add what is available
since which version of Perl.

--
John Bokma j3b

Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
From: Ben Morrow on

Quoth John Bokma <john(a)castleamber.com>:
>
> As for what I would put on a cheat sheet:
> http://johnbokma.com/perl/perl-quick-reference-card.html

Hmm. My reaction to lists like that is 'isn't that just all the stuff
you hold in your head?', but I guess if it isn't a cheat sheet is
useful.

What does 'atomic' mean wrt regex metachars?

Ben

From: John Bokma on
Ben Morrow <ben(a)morrow.me.uk> writes:

> Quoth John Bokma <john(a)castleamber.com>:
>>
>> As for what I would put on a cheat sheet:
>> http://johnbokma.com/perl/perl-quick-reference-card.html
>
> Hmm. My reaction to lists like that is 'isn't that just all the stuff
> you hold in your head?', but I guess if it isn't a cheat sheet is
> useful.

I certainly don't have all that information on that cheat sheet in my
head. The reason I made it was that some of the more exotic (to me) file
test ops I couldn't recall which one did which, and some other stuff I
had to look up when needed. Originally some notes on an index card, then
I decided to type it in and print it out. And while typing it in, I
decided to make it useful to more people.

To be honest, after I made it and printed out my own version I've used
it rarely. Can't even recall where my print out is at the moment
:-). One advantage of typing stuff in like this is that you learn a lot
(well, I did). I got better at Textpad after I made a similar cheat
sheet: http://johnbokma.com/textpad/quick-reference-card.html

> What does 'atomic' mean wrt regex metachars?

"To avoid confusing, we'll call the thing with width an atom" p141,
Programming Perl.

--
John Bokma j3b

Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
From: J�rgen Exner on
John Bokma <john(a)castleamber.com> wrote:
>As for what I would put on a cheat sheet:
>http://johnbokma.com/perl/perl-quick-reference-card.html
>
>Note that it's outdated, and probably incomplete. I hope to have time
>soon to add the more recent stuff to it, and also add what is available
>since which version of Perl.

I find it very interesting where you put the emphasis on your sheet:
3 1/2 columns out of 5 deal with regular expressions, only 1 1/2 are
actually Perl itself..

What I would include/add from my perspective:
- Perl functions by name sorted by category as in perldoc perlfunc but
with argument list and return value, including indication for optional
arguments
- Perl syntax, at least for less common constructs, e.g. modifiers
- syntax (maybe by examples) for references and OO

jue