Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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...


Comment on Re: Using multiple args per switch with Getopts::Std
Download Code
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 exploiting the Monastery: (4)
As of 2014-07-13 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (243 votes), past polls