in reply to Regular Expression
Here is a simple, low-overhead way:
Update Oops .. Corrected, as per Dietz (++) below. Thanks.my $month=7; $month < 10 and $month = '0' . $month; print $month;
Earth first! (We'll rob the other planets later)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular Expression
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 | |
|
Re^2: Regular Expression
by Dietz (Curate) on Aug 05, 2004 at 16:01 UTC |