Dharshana Eswaran wrote: > Hi all, Hello,
> I was trying to reverse the digits. > > For eg: if i have 50, i wanted to print 05 > > Can anyone tell me a simple way? $ perl -le'my $digits = "05"; print for $digits, scalar reverse $digits' 05 50 John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/