Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Where a unix crontab should match thiswhile ($newtime !~ /[0-59\*]\s+[0-23\*]\s+[1-31\*]\s+[1-12\*]\s+[0-6\* +]/) { print qq (\n Enter the time: ); $newtime = <STDIN>; chomp $newtime; }
and each position can also be replaced with an asteris (*)minute (0-59), hour (0-23), day of the month (1-31), month of the year (1-12), day of the week (0-6 with 0=Sunday).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple pattern match ?
by Corion (Patriarch) on Mar 15, 2006 at 15:32 UTC | |
by Anonymous Monk on Mar 15, 2006 at 15:47 UTC | |
by McDarren (Abbot) on Mar 15, 2006 at 16:22 UTC | |
by johngg (Canon) on Mar 15, 2006 at 19:07 UTC | |
by Corion (Patriarch) on Mar 15, 2006 at 16:50 UTC | |
by McDarren (Abbot) on Mar 15, 2006 at 17:12 UTC | |
by Corion (Patriarch) on Mar 15, 2006 at 17:15 UTC | |
|
Re: simple pattern match ?
by ides (Deacon) on Mar 15, 2006 at 16:08 UTC | |
|
Re: simple pattern match ?
by smokemachine (Hermit) on Mar 15, 2006 at 16:38 UTC | |
|
Re: simple pattern match ?
by eric256 (Parson) on Mar 15, 2006 at 22:22 UTC | |
by Anonymous Monk on Mar 15, 2006 at 22:48 UTC | |
|
Re: simple pattern match ?
by Anonymous Monk on Mar 15, 2006 at 15:33 UTC | |
by rafl (Friar) on Mar 15, 2006 at 16:26 UTC | |
by skx (Parson) on Mar 15, 2006 at 20:42 UTC | |
|
Re: simple pattern match ?
by Krambambuli (Curate) on May 11, 2007 at 16:32 UTC | |
|
Re: simple pattern match ?
by Anonymous Monk on May 11, 2007 at 11:14 UTC |