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.
In reply to Re^2: print "$var\n" or print $var, "\n"
by Fletch
in thread print "$var\n" or print $var, "\n"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |