This doesn't happen. If you are seeing it then it is something you are doing wrong in your code. Run my sample script and see for yourself:
#!/usr/bin/perl use strict; use warnings; while ( <DATA> ) { chomp; print format_it( split " " , $_ ), "\n"; } sub format_it { my $formatted; for ( @_ ) { $formatted .= length $_ == 1 ? '0' . $_ : $_; } return $formatted; } __DATA__ 3 2 61 13 333 5 7 8
Cheers - L~R
In reply to Re^5: scalar number with preceding 0.
by Limbic~Region
in thread scalar number with preceding 0.
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |