asiufy has asked for the wisdom of the Perl Monks concerning the following question:
... I get "%04b" on the web browser, and "1010" from the command line, which is what I expect (binary conversion of the decimal "10").use CGI; $query = new CGI; print $query->header; $a = sprintf("%04b", 10); print $a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: sprintf() and CGI
by jeffa (Bishop) on May 10, 2001 at 02:23 UTC | |
by asiufy (Monk) on May 10, 2001 at 02:34 UTC | |
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 |