Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: how to get value of print command

by toolic (Bishop)
on May 13, 2010 at 15:57 UTC ( #839854=note: print w/replies, xml ) Need Help??

in reply to Re: how to get value of print command
in thread how to get value of print command

my $result = sprintf "$var hello world ";
Don't do that. Not only is it a useless use of sprintf, but it is also an abuse of sprintf, whose 1st argument should be a format specification. This does the same thing:
my $result = "$var hello world ";

Replies are listed 'Best First'.
Re^3: how to get value of print command
by k_manimuthu (Monk) on May 14, 2010 at 11:13 UTC

    I tried it in different way to get the solution. Now i understand i should not use "sprintf", sorry for the inconvenience caused. I will give more attention for replying a thread in future.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2016-10-26 22:10 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (350 votes). Check out past polls.