Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
# my $num = 0x100; my $chr = string of $num; # not sure what this should be call_f2($chr); sub call_f2{ my $str = shift; &f2($str); } sub f2 { my $str = shift; print ($str); } # I want to print 100, is it possible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing hex argument as string
by pg (Canon) on Nov 04, 2003 at 02:43 UTC | |
|
Re: passing hex argument as string
by batkins (Chaplain) on Nov 04, 2003 at 02:44 UTC | |
by Anonymous Monk on Nov 04, 2003 at 02:52 UTC | |
by ysth (Canon) on Nov 04, 2003 at 03:37 UTC | |
|
Re: passing hex argument as string
by TomDLux (Vicar) on Nov 04, 2003 at 03:25 UTC | |
|
Re: passing hex argument as string
by ysth (Canon) on Nov 04, 2003 at 11:44 UTC |