Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: conditional statements in list constructors

by Don Coyote (Hermit)
on Mar 28, 2014 at 01:10 UTC ( #1080029=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $reftolastscalar =  \( "if(1<2){'1'}else{()}" );
    my @arr =  ( "if(1<2){'1'}else{()}" );
    ...
    1
    2
    user@Desktop:~/Desktop$
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2022-05-29 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?