in reply to Help with a dereference

scalar context, see perlop
my @stuff = 1 .. 10; print "dot aka period ". @stuff ."\n"; print "comma ", @stuff ,"\n"; __END__ dot aka period 10 comma 12345678910

Replies are listed 'Best First'.
Re^2: Help with a dereference
by AnomalousMonk (Archbishop) on Nov 06, 2009 at 19:55 UTC
    Or even direct string interpolation:
    >perl -wMstrict -le "my @stuff = 1 .. 10; print qq{interpolate @stuff here}; " interpolate 1 2 3 4 5 6 7 8 9 10 here
    Update: Using something closer to the code of the OP:
    >perl -wMstrict -le "my $stuff = {}; my $this = 'here'; $stuff->{$this} = [ qw(foo bar baz) ]; print qq{interpolate @{ $stuff->{$this} } here}; " interpolate foo bar baz here

      Thanks guys,

      I mainly was checking that @{$matches->{$user}} was correct, because I actually was using it in an if statement then iterating through it to print to a filehandle.

      I was using print to test that the array looked right and the periods were hanging me up.

      Thanks again.

Re^2: Help with a dereference
by koaps (Novice) on Nov 06, 2009 at 19:54 UTC
    thanks