Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
There's more than one way to do things
 
PerlMonks  

scalar my vs list my

by merlyn (Sage)
on Apr 27, 2001 at 01:11 UTC ( #75915=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my ($filename) = "/path/to/file"; 
        my ($filemode) = "immolate"; 
        my ($opmode)   = "seek"; 
        my ($filetype) = "image/gif"; 
    
  2. or download this
    my ($filemode) = ("immolate"); # list context
    
  3. or download this
    my $filemode = "immolate"; # scalar context
    
  4. or download this
    my $count = @_; # get the length
    
  5. or download this
    my ($count) = @_; # get the first arg
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-04-21 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls