in reply to Problem with integer to decimal conversion

Hmm. This smells like homework.

What problem are you trying to solve? Explain what steps you have taken and perhaps we can help you solve the problem. Your code fragment doesn't run (I suspect -- since there's no ';' after use strict) and you never read the user's input.

Come back with more effort and we'll see what we can do for you.

--t. alex

"Nyahhh (munch, munch) What's up, Doc?" --Bugs Bunny

ps Please, don't use all caps in the title to get our attention. It doesn't work. :)

  • Comment on Re: Problem with integer to decimal conversion

Replies are listed 'Best First'.
Re: Re: Problem with integer to decimal conversion
by Sidhekin (Priest) on May 16, 2002 at 14:38 UTC

    Your code fragment doesn't run (I suspect -- since there's no ';' after use strict) and you never read the user's input.

    Try running the "code fragment" with perl -s - -j=31 or perl -s - -j=33 and you may be in for a surprise :-)

    Okay, I am wearing my trickster hat, but I'm surprised you did not see the ';' after use strict ... the indentation alone should give it away. You gotta love the DWIM of Perl though. Even where it is less than intuitive :-)

    The Sidhekin
    print "Just another Perl ${\(trickster and hacker)},"