http://www.perlmonks.org?node_id=25191


in reply to RE: RE: Undef on POP3 method
in thread Undef on POP3 method

Quick and dirty explanation of interpolation for ya:

my $this = 'hello'; my $thisvar = 'goodbye'; # prints 'hello' of course print $this; # single quotes mean no interpolation occurs, prints '$this' print '$this'; # double quotes invoke interpolation, prints 'hello' print "$this"; # perl does 'greedy' interpolation (don't know if that's the # right term) so this prints 'goodbye' print "$thisvar"; # this makes it explicit that we only want $this, so this # line prints 'hellovar' print "${this}var";
I'm sure the faq has a more detailed explanation that covers list interpolation as well...

-Mark