April 13th, 2013, 06:24 AM
How to print 0(zero)?
I am new to perl and I am stuck somewhere...
if $val=0x0; (it is a hexadecimal value)
then how to print that same value, with the base system as well(i.e. 0x0)...
print "$val"; is not giving exactly the same output
can you please help me???
April 13th, 2013, 08:06 AM
April 13th, 2013, 08:09 AM
Why not simply:
That will print: "0x0".
Or, if if you want to make sure to print an hexadecimal value in all cases:
Comments on this post
April 13th, 2013, 02:25 PM
Thank you again to both of you, Laurent_R and FishMonger.
Both of you helped me a lot.
May god bless you!
April 13th, 2013, 05:12 PM
My pleasure to help you.
Originally Posted by bonny1989
My only hope: that your knowledge in Perl will improve to the level where you will be able to help others.
April 14th, 2013, 12:21 AM
oh... with your help, i will try to reach upto your level!
Originally Posted by Laurent_R