in reply to (jeffa) Re: sprintf() and CGI
in thread sprintf() and CGI

Well, but I still find it strange that sprintf("%b") works right from the command line, but fails from CGI...

I understand the "%b" is a recent (5.6.0) feature, so maybe no one noticed yet this behavior...

Replies are listed 'Best First'.
(tye)Re: sprintf() and CGI
by tye (Sage) on May 10, 2001 at 02:47 UTC

    Sounds like your CGIs are using a different version of Perl than you get from your command-line. Change your script to also print out $] (and perhaps "@INC") to see.

            - tye (but my friends call me "Tye")
      tye, you nailed it! Sun ships Perl v5.003 in /usr/bin/perl, and I ended up installing 5.6.1 on /usr/local/bin ...

      Thanks!!!