in reply to Print Question
It is most portable to rely on $/ or "\n". "\r" is incorrect in unix.
It is often helpful to bracket variables in interpolating quotes like so: print ">${unixfrom}\n"; which allows a construction like "\>${unixfrom}foo\n" in concatenation.
It would be good to print a list of arguments instead of constructing a sequence of print statements.
That will save some unneeded churning around with interpolation. The print function stringifies its arguments by default, so interpolating quotes are unnecessary.{ local $, = "\n"; print '>' . $unixfrom, $return_path[$j], $received[$j], $date[$j], $from[$j], $to[$j], $subject[$j], $message_id[$j], $mimeversion[$j], $content_type[$j], $xstatus[$j], $xkeywords[$j], $xuid[$j]; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Print Question
by theorbtwo (Prior) on May 18, 2003 at 04:00 UTC |