Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Crond

by belg4mit (Prior)
on May 26, 2002 at 16:28 UTC ( #169407=note: print w/replies, xml ) Need Help??


in reply to Crond

For example you could do
my(%dias, %dias_crontab); %dias = %dias_crontab = ( ... );
Or alternately, simply only use one hash, since the data is the same.

Your regexps for extracting field data are actually too strict, you do not allow for whitespace between commas, or for non space whitespace.

You might want to take a glance at "a cron; in perl: But Why?!", and perhaps consider wrapping it in a shell to interface with Windows services?

--
perl -pew "s/\b;([mnst])/'$1/g"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://169407]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2018-07-16 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (342 votes). Check out past polls.

    Notices?