Harry Putnam wrote:
"Chas. Owens"<chas.ow...@gmail.com>  writes:

A quick reference guide for operators:
http://github.com/cowens/perlopquick/blob/master/perlopquick.pod

Is this just a typo, or am I not understanding what is presented at, I
think, the 5th occurrence of the term `Example' on the above URL:

Example

     my @a = qw/ a b c /;     #...@a is now ("a", "b", "c", "d")
     my @b = qw/ $foo $bar /; #...@b is now ('$foo', '$bar')

Yes, that is a mistake.  It should be:

      my @a = qw/ a b c /;     #...@a is now ("a", "b", "c")


There is also a mistake at:

<QUOTE>
'X'
Class

This belongs to "Terms and List Operators (Leftward)" in perlop and "Quote and Quote-like Operators" in perlop.
Description

This is the single quote operator (aka the non-interpolating string operator). It creates a string literal out of X.

To place a ' inside the string, you must escape it with \:

    my $quote = 'He said \'I like quotes.\'';

Unlike double quoted strings, that is the only escape sequence.
</QUOTE>

The other escape sequence is '\\', as in:

    my $quote = 'He said \'I like quotes.\\';




John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to