Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

scalar my vs list my

by merlyn (Sage)
on Apr 27, 2001 at 01:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://75915]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found