my $arrayref = [ 4200 / 100 ]; print "The answer is $arrayref \n";
my $arrayref = [ 4200 / 100 ]; print "The answer is @$arrayref \n";
my $arrayref = ; print "The answer is @[ 4200 / 100 ] \n";
syntax error at - line 1, near "= ;" Execution of - aborted due to compilation errors.
print "The answer is @{[ 4200 / 100 ]}\n";
In reply to Re^3: How can we interpolate an expression??
by Anonymous Monk
in thread How can we interpolate an expression??
by Rohit Jain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |