Randy W. Sims <mailto:[EMAIL PROTECTED]> wrote:

: On 6/3/2004 10:54 PM, Dennis G. Wicks wrote:
:
: 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;


    You can also change the value of $\ to "\n":

$\ = "\n";
print 'Hello,';
print 'world';


    Or to make that temporary:

{
    local $\ = "\n";
    print 'Hello,';
    print 'world';
}
print 'Hello,';
print 'world';


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
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