in reply to sprintf() and CGI
Invalid conversion in sprintf: "%b" at ./foo.cgi line 13.
UPDATE:
sorry, i see what you are wanting to do now, you should use pack and unpack instead of sprintf:
I did a SuperSearch on 'convert binary decimal' and came across How do I convert between decimal and binary?.my $a = unpack("B32", pack("N", $a)); $a =~ s/^0+(?=\d)//; print $a;
jeff "will move to 5.6 someday real soon" a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: sprintf() and CGI
by asiufy (Monk) on May 10, 2001 at 02:34 UTC | |
|
Re: (jeffa) Re: sprintf() and CGI
by asiufy (Monk) on May 10, 2001 at 02:37 UTC | |
by tye (Sage) on May 10, 2001 at 02:47 UTC | |
by asiufy (Monk) on May 10, 2001 at 03:22 UTC |