go ahead... be a heretic | |
PerlMonks |
Re^3: Comma's and blocksby erroneousBollock (Curate) |
on Oct 04, 2007 at 06:35 UTC ( [id://642579]=note: print w/replies, xml ) | Need Help?? |
print <STDOUT> , "Hello"; #runsThat doesn't do what you think. <STDOUT> reads from the STDOUT filehandle (which won't do anything useful). You can't put a comma between the file-handle and the printable content, the syntax is not short for any other syntax. print HANDLE expression is the normal form. print expression is parsed by perl to mean print LATESTHANDLE expression where LATESTHANDLE is the last handle given to select() (the default is STDOUT). -David
In Section
Seekers of Perl Wisdom
|
|