Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Newbie: query about array assignment

by sundialsvc4 (Abbot)
on Sep 13, 2012 at 15:19 UTC ( [id://993509]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'my @stuff="This","That","Other"; use Data::Dumper; 
    print Dumper(\@stuff);'
    $VAR1 = [
              'This'
            ];
    
  2. or download this
    perl -e 'my @stuff=("This","That","Other"); use Data::Dumper; 
    print Dumper(\@stuff);'
    ...
              'That',
              'Other'
            ];
    
  3. or download this
    perl -e 'use strict; use warnings; 
    my @stuff="This","That","Other"; 
    ...
    $VAR1 = [
              'This'
            ];
    
  4. or download this
    perl -e 'my @stuff=("This","That","Other"); use Data::Dumper; 
    print Dumper(@stuff);'
    $VAR1 = 'This';
    $VAR2 = 'That';
    $VAR3 = 'Other';
    
  5. or download this
    Undefined subroutine &main::Dumper called at -e line 1.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://993509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found