in reply to Re: Re: Re: Memory Use/Garbage Collection: Java vs Perl
in thread Memory Use/Garbage Collection: Java vs Perl
The Perl version needs to concatenate strings, too!
producesperl -MO=Deparse,-q -e"print qq(I am $x\n)"
not print ('I am ' , $x , "\n" ).print 'I am ' . $x . "\n";
That is, Perl concatenates the literals and variables together into one string, then calls print with the result.
—John
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Re: Memory Use/Garbage Collection: Java vs Perl
by BrowserUk (Patriarch) on Sep 03, 2002 at 15:09 UTC | |
by John M. Dlugosz (Monsignor) on Sep 03, 2002 at 15:25 UTC | |
by jsprat (Curate) on Sep 03, 2002 at 20:55 UTC | |
by John M. Dlugosz (Monsignor) on Sep 03, 2002 at 21:34 UTC |
In Section
Seekers of Perl Wisdom