Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: return value of "if" (documentation?)

by ikegami (Pope)
on Jan 08, 2014 at 15:17 UTC ( #1069819=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Concise,-exec -e'print if $a'
    1  <0> enter
    ...
    7      <@> print vK
    8  <@> leave[1 ref] vKP/REFC
    -e syntax OK
    
  2. or download this
    $ perl -MO=Concise,-exec -e'if ($a) { print }'
    1  <0> enter
    ...
    7      <@> print vK
    8  <@> leave[1 ref] vKP/REFC
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-08 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls