Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#my $month=12; #exemplo my $month=7; # I just want to add 0, if it's a single digit date numbe +r if($month=~/(\d)/g) { $month=.0.$month; print "test - $month<br>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression
by davis (Vicar) on Aug 05, 2004 at 13:48 UTC | |
by Anonymous Monk on Aug 05, 2004 at 13:59 UTC | |
|
Re: Regular Expression
by friedo (Prior) on Aug 05, 2004 at 13:49 UTC | |
|
Re: Regular Expression
by NetWallah (Canon) on Aug 05, 2004 at 15:39 UTC | |
by tinita (Parson) on Aug 05, 2004 at 19:28 UTC | |
by NetWallah (Canon) on Aug 06, 2004 at 03:51 UTC | |
by olivierp (Hermit) on Aug 05, 2004 at 20:45 UTC | |
by tinita (Parson) on Aug 05, 2004 at 23:34 UTC | |
by Dietz (Curate) on Aug 05, 2004 at 16:01 UTC | |
|
Re: Regular Expression
by pbeckingham (Parson) on Aug 06, 2004 at 00:42 UTC | |
|
Re: Regular Expression
by chanio (Priest) on Aug 06, 2004 at 05:30 UTC |