Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: defining variables using my - subroutines

by Anonymous Monk
on Sep 05, 2012 at 18:18 UTC ( #991910=note: print w/replies, xml ) Need Help??


in reply to Re^2: defining variables using my - subroutines
in thread defining variables using my - subroutines

$scalar = ( 1, 2, 3 );
$scalar is a variable, it exists past this line, but ( 1, 2, 3 ); is a list of value, it does not exist past that line

@array = ( 'list item 1', 2, 'another value', 'yet another value ');
an @array is a variable, it has a name, it exists past the line, it is a bucket, you store scalars inside

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991910]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-11-25 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?