Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Easy Reference for Contexts

by cat_baby (Novice)
on Apr 14, 2011 at 06:53 UTC ( [id://899364]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    m/.../     returns true or false in scalar context
    m/.../g   give you a list of matches in list context
    m/(...)/   can populate an array with whatever gets captured... (??)
    
  2. or download this
    while( )   i.e. inside parenthesis is evaluated in scalar context?
    foreach( )   i.e. inside parenthesis is evaluated in list context?
    
  3. or download this
    <STDIN>   returns the next line of input in list context
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://899364]
Approved by philipbailey
Front-paged by philipbailey
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found