Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: How can we interpolate an expression??

by Anonymous Monk
on Sep 20, 2012 at 18:10 UTC ( #994716=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $arrayref = [ 4200 / 100  ];
    print "The answer is $arrayref \n";
    
  2. or download this
     my $arrayref = [ 4200 / 100  ];
    print "The answer is @$arrayref \n";
    
  3. or download this
     my $arrayref = ;
    print "The answer is @[ 4200 / 100  ] \n";
    
  4. or download this
    syntax error at - line 1, near "= ;"
    Execution of - aborted due to compilation errors.
    
  5. or download this
     
    print "The answer is @{[ 4200 / 100  ]}\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994716]
help
Chatterbox?
[erix]: comic relief: how to start a riot and a fortune at the same time
[beech]: :) thats too generous to jdporter, don't start none won't be none -- there is about two decades (rounding up) worth of "ineffective" node titles -- leave the pope alone :p
[erix]: infallibility breeds inquisition

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-01-17 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (159 votes). Check out past polls.