in reply to Re^2: chomp a List
in thread chomp a List

=> is almost the same as ,

The difference is that => forces the value to the left of it to be interpreted as a quoted string

This is why
#!/usr/bin/perl -w my %a=( foo => "bar", fi , "fo");

Will get you a warning for the unquoted fi, but not the unquoted foo. However, normal operator precedence still applies, so

print join , => @to_print;
won't work, whereas
print join or => @to_print;
will.

Replies are listed 'Best First'.
Re^4: chomp a List
by ZlR (Chaplain) on Feb 08, 2005 at 12:40 UTC
    cool :) or is seen as a string ... thx !