At 12:46 PM 6/13/01 -0400, Tim Musson wrote:

>I was thinking along the same lines, but have another question.  Why
>would you    .    instead of    ,    in the print line?
>
>why
>     print DATAFILE "\n\n" . '='x77 . "\n\n" . localtime;
>over
>     print DATAFILE "\n\n" , '='x77 , "\n\n" , localtime;

No difference in this case.  The . will put the things on each side in 
scalar context, the , will keep them in the list context imposed by 
print.  For other things on each side, this can make a difference.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com

Reply via email to