in reply to Re: Comma's and blocks
in thread Comma's and blocks
David,
Thanks for the response! The map and grep is a lot clearer (kind of).
In the above example. The first line is making sense and opened my eyes to that for the map. As well the print uses a comma when a proper file handle '<' and '>' are used. Why do the use of proper terms affect the use of commas?#ex 1 map (sub {/dothis/},@_); map {/and this/}, @_; #now doesnt compile #ex 2 print STDOUT "hello"; print <STDOUT> , "Hello"; #runs
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Comma's and blocks
by erroneousBollock (Curate) on Oct 04, 2007 at 06:35 UTC | |
Re^3: Comma's and blocks
by mwah (Hermit) on Oct 04, 2007 at 09:41 UTC |
In Section
Seekers of Perl Wisdom