Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2016-09-26 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (483 votes). Check out past polls.