Jim Guion wrote:
>   #print "\$list[$i]: '$list[$i]'\n"; #NOTE: It's a 'string' here!
>   $list[$i] =~ s/^0//: #Strips the leading zeroes!
>   #print "\$list[$i] now: '$list[$i]'\n"; #NOTE: Number now, good!

Wrong and completely unnecessary. Leading zeros have nothing to do with
whether it's a 'string' or a 'number'. In perl, it doesn't matter--just
operate on it, it'll do the right thing.



-- 
Mark Thomas                    [EMAIL PROTECTED] 
Internet Systems Architect     DigitalNet, Inc. 

$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;; 
  

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to