Think about Loose Coupling | |
PerlMonks |
Re: getting wrong valueby johngg (Canon) |
on Jan 15, 2013 at 22:59 UTC ( [id://1013466]=note: print w/replies, xml ) | Need Help?? |
You need sprintf to assign to a scalar. You are getting the value 1 in your $line2 variable as that is what is returned by the successful printf that displays on your screen.
I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|