in reply to Substring Syntax Check
Here's a date I'm having the user enter in to get the month and the year, so I can create a folder with the month name and year.
Is it the current month and year?
my ($y,$m) = (localtime)[5,4]; $m+=1; $y+=1900;
split first argument is a regular expression. / has a special meaning in regular expressions, so you need to escape it.I tried using split, but it didn't like the / as a delimitter.
split /\//
Update: Said | where I meant /. Fixed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Substring Syntax Check
by jwkrahn (Abbot) on Sep 27, 2008 at 02:19 UTC | |
by ikegami (Patriarch) on Sep 27, 2008 at 03:55 UTC | |
by Anonymous Monk on Sep 27, 2008 at 04:29 UTC | |
|
Re^2: Substring Syntax Check
by drodinthe559 (Monk) on Sep 26, 2008 at 22:38 UTC | |
by toolic (Bishop) on Sep 26, 2008 at 23:49 UTC |