Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Help combining two regex's into one

by roboticus (Canon)
on Jan 15, 2013 at 11:50 UTC ( #1013369=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Help combining two regex's into one
in thread Help combining two regex's into one

I can't quite tell if you're processing command line arguments or not. So if not, ignore the rest of this post.

Processing command-line arguments can get tricky, so I won't talk you out of doing it yourself. However, I *do* want to point out that it's complex enough that various people have created various packages to handle them. You may find it worth your while to use one of them, rather than wrestling with subtle errors as you add yet more options. I usually use Getopt::Long, but you should review several before choosing. Getopt::Long is pretty flexible, but requires a bit more effort than some others, so you might not like it as much as I do.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re^3: Help combining two regex's into one

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2014-09-20 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (153 votes), past polls