in reply to Re^2: new to perl, syntax question
in thread new to perl, syntax question
then I took the "\n" out to make it clearer (but didn't run it!). I take it the concatenation makes print evaluate in scalar context. So should be:print @name . "\n";
(lidden: I was still fixing this when you replied)print "@name"; # prints x y z print @name; # prints xyz print @name . "\n"; # prints 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: new to perl, syntax question
by lidden (Curate) on Feb 20, 2012 at 13:56 UTC |