Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Using multiple args per switch with Getopts::Std

by kschwab (Priest)
on Aug 28, 2002 at 02:51 UTC ( #193341=note: print w/replies, xml ) Need Help??


in reply to Using multiple args per switch with Getopts::Std

&help unless (($opt_d, $opt_e) =~ /(\d{2})\/(\d{2})\/(\d{4})(.*?)$/);
isn't doing what you think it is. Compare them separately...

Replies are listed 'Best First'.
Re: Re: Using multiple args per switch with Getopts::Std
by blink (Scribe) on Aug 28, 2002 at 10:20 UTC
    You may be right, but I don't think that that's where my problem lies. The print statement that prints $opt_d and $opt_e, and returns "DD/MM/YYYY", rather than "DD/MM/YYYY HH:MM:SS", is executed before hitting the regex.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://193341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2016-08-31 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.