Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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?
[LanX]: ... what's next? Donald as John Wayne in "Rio Pig Blood - Bad Hombres must Die" ?
[LanX]: nowadays no idea is too silly to be unlikely...
[erix]: potshots at potus. It was kinda encouring when they started shooting a republican senators ;)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-08-18 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (301 votes). Check out past polls.

    Notices?