http://www.perlmonks.org?node_id=1008439


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

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.

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