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
won't work, whereasprint join , => @to_print;
will.print join or => @to_print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: chomp a List
by ZlR (Chaplain) on Feb 08, 2005 at 12:40 UTC |