Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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


Comment on Re^3: defining variables using my - subroutines
Select or Download Code

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 chanting in the Monastery: (6)
As of 2014-08-20 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (105 votes), past polls