Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Unable to split $ARGV[0] variable. Can it be done?

by Doozer (Scribe)
on Dec 11, 2012 at 09:12 UTC ( #1008245=note: print w/replies, xml ) Need Help??

in reply to Re: Unable to split $ARGV[0] variable. Can it be done?
in thread [SOLVED]Unable to split $ARGV[0] variable. Can it be done?

Thanks to everyone for the help and suggestions on this. I have sorted it now using inspiration from the responses.

I didn't use URI in the end as it was overkill for what I actually wanted to do. I will however keep it in mind if we decide to evolve our current test

  • Comment on Re^2: Unable to split $ARGV[0] variable. Can it be done?

Replies are listed 'Best First'.
Re^3: Unable to split $ARGV[0] variable. Can it be done?
by Your Mother (Bishop) on Dec 12, 2012 at 03:55 UTC

    I'm glad you worked it out but I caution you against thinking that one line of code is overkill, right? URI is an excellent package (set of packages really) that is not going to surprise you or let you down on edge cases and you can see from the example how dead-simple it is to apply. This kind of OOP in straightforward/short code isn't overkill as much as it is applying standards and preparing for future growth; growth which visits short scripts much more often than intended.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-06-23 20:44 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.