Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Easy Reference for Contexts

by LanX (Saint)
on Apr 14, 2011 at 13:42 UTC ( [id://899435]=note: 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... (??)
    ...
    foreach( ) i.e. inside parenthesis is evaluated in list context?
     
    <STDIN> returns the next line of input in list context
    
  2. or download this
      DB<23> $_="aaa"
     
      DB<24> print scalar m/a/
    1
    
  3. or download this
     perl -e 'print prototype "CORE::push","\n"'
    \@@
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-29 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found