in reply to Re6: Memory Use/Garbage Collection: Java vs Perl
in thread Memory Use/Garbage Collection: Java vs Perl

True, but

perl -MO=Deparse,-q -e "print 'Hello, ' . 'World'"

Is parsed as

print 'Hello, World'; -e syntax OK

Apparently, the example you gave was more complex than the parser wanted to deal with.

Update Added -q, as John pointed out below...

Replies are listed 'Best First'.
Re: Re: Re6: Memory Use/Garbage Collection: Java vs Perl
by John M. Dlugosz (Monsignor) on Sep 03, 2002 at 21:34 UTC
    You forgot the -q, so the string folding is done by Deparse's formatting, totally hiding what you were trying to detect.

    Trying it with, it seems that's still indeed working. A few other quick tests, and it seems that the presence of interpolation prevents the merging, rather than merging the tail-end piece as you would expect.

    Any perl hacker want to comment?

    —John