Berkeley CSUA MOTD:Entry 38467
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2005/7/7-10 [Computer/SW/Languages/Perl] UID:38467 Activity:nil
7/7     Is there an easy way in Perl to parse command-line arguments like:
        -opt1 val1 -opt2 val2?
        \_ Getopt::Std module
           \_ Ah, thank you--both for the useful answer and the quick reply.
           \_ Specifically, look at the getopts() function in there.
        \_ How about in Python?
           \_ python has a standard getopt too. stfw.