Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Newbie: query about array assignment

by sundialsvc4 (Abbot)
on Sep 13, 2012 at 15:19 UTC ( #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 = [
  2. or download this
    perl -e 'my @stuff=("This","That","Other"); use Data::Dumper; 
    print Dumper(\@stuff);'
  3. or download this
    perl -e 'use strict; use warnings; 
    my @stuff="This","That","Other"; 
    $VAR1 = [
  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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993509]
Discipulus s/silbing/whistle/ dunno from where this word was in my mind..
[Discipulus]: lost in time in space and in the meaning (rocky horror picture show)
[Corion]: Discipulus: Yeah, a short vacation on the Canary islands (Lanzarote). Always great to be in the warmth and sun, from a cold and rainy February here ;)
[Corion]: choroba: Yeah, you have to find a time for the regular skype (or whatever) meetup, I imagine that's hard
[choroba]: Lanzarote is great!
choroba went there year ago

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2017-02-22 08:48 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (325 votes). Check out past polls.