in reply to Re: print "$var\n" or print $var, "\n"
in thread print "$var\n" or print $var, "\n"
Unless of course someone's mucked with $\ . . .
$ perl -le '$\="wubba\n"; print "foo\n"' foo wubba
Update: Good point about printf below. There's also syswrite, for that matter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: print "$var\n" or print $var, "\n"
by Animator (Hermit) on Feb 17, 2005 at 20:48 UTC | |
|
Re^3: print "$var\n" or print $var, "\n"
by Aristotle (Chancellor) on Feb 19, 2005 at 05:26 UTC |