Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

by Marshall (Abbot)
on Sep 21, 2012 at 08:07 UTC ( #994844=note: print w/replies, xml ) Need Help??

in reply to Re^2: How can we interpolate an expression??
in thread How can we interpolate an expression??

my $number = 5; my $multiplier = 3; # Use print instead of "say" print "Product is ", $number * $multiplier, "\n"; #this does not work... #"say" has limitations... say "Product is ", $number * $multiplier; __END__ Product is 15
"Say" will add a \n to a simple string. More complex things require "print" or "printf".

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994844]
[Lady_Aleena]: I'll just have to search for the files using the subs and open them up.
[Discipulus]: nice Perl dreams, folks.. shower->Dumas->bed
[erix]: pere ou fils?
[Lady_Aleena]: Discipulus, good night.
[Discipulus]: pere, le vicomte de bragelonne.. wonderfull

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-05-23 19:57 GMT
Find Nodes?
    Voting Booth?