in reply to Re: Splitting two digits
in thread Splitting two digits

I enter 3 number's with your code and only gave me the two first digits i think the code above can make the job
#!/usr/bin/perl -lw $"=","; $_="20"; @F=split//; print "@F";

Replies are listed 'Best First'.
Re^3: Splitting two digits
by Ionizor (Pilgrim) on Jan 08, 2003 at 03:57 UTC

    My code only handles two digits by design. The title of the node is "Splitting two digits" so I restricted my solution to only returning two digits.

    --
    Grant me the wisdom to shut my mouth when I don't know what I'm talking about.