On 6/3/2004 10:54 PM, Dennis G. Wicks wrote:
Greetings;

Is there a shortcut or option or something that will let me
not have to type "\n"; so often? I am not the worlds best
typist and I need all the help I can get!

You can use here-documents (see `perldoc perldata`)

print <<EOM;
Hello,
World!
EOM


you could also define a constant:

use constant eol => "\n";

print 'Hello,' . eol;
print 'world' . eol;


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to