in reply to Re: octal error
in thread octal error

i know but i cant quote it its from a user input! $item = 05540986;# dont change! i must convert this to a string to another variable but how?

Replies are listed 'Best First'.
Re: octal error (converting octal to string) sprintf
by mandog (Curate) on Sep 26, 2001 at 00:35 UTC
    In reply to Gerryjun question on how to keep user input from being interpreted as Octal. in this thread
    my $test=<STDIN>; my $test=sprintf("%s",$test); print $test;


    --mandog
Re: Re: Re: octal error
by suaveant (Parson) on Sep 26, 2001 at 00:28 UTC
    Well, how does the user input it? It should already be a string if read in from STDIN or anything like that...

                    - Ant
                    - Some of my best work - Fish Dinner

      its comming from a form but the octal error happens!

        You must be using eval, then. Stop it. (:

                - tye (but my friends call me "Tye")