>>>>> "SHC" == Shawn H Corey <[email protected]> writes:
SHC> Uri Guttman wrote: >> >> print <<TEXT ; >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> All STDOUT/STDERR will be assigned to this scripts audittrail log!! >> TEXT SHC> Or SHC> print "All STDOUT/STDERR will be assigned to this scripts audittrail SHC> log!!\n" x 3; i would assume he wasn't really printing the same line 3 times. and he was using printf all over his code which is bad. the here docs is just a good way to make multiline printing better. and for other newbies here, note that here docs are NOT a feature of print, but another quoting mechanism. i have seen too many newbies think here docs are only used with print since it is a common idiom. you can use here docs for any long string anywhere you can put a quoted string in perl. uri -- Uri Guttman ------ [email protected] -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Free Perl Training --- http://perlhunter.com/college.html --------- --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
