passing command line args into a scalar/array

2001-08-21 Thread Salvador Lopez
Using Getopt::Long, how can i pass a value that is a list into an scalar or array? In the following example, I would like 'tic tac toe' to be assigned to a scalar or array variable. ./perlscript.pl --arg1 foo --arg2 tic tac toe GetOptions( "arg1:s" => \$arg1, "arg2:s" => \$arg2); # $arg1 now co

Re: how do I know what modules are installed

2001-08-15 Thread Salvador Lopez
running `perl -e 'use XML:Parser'` should do the trick. If you get the prompt back, it's installed. Otherwise, you get the "Can't locate..." message. --sal --- Michel Rodriguez <[EMAIL PROTECTED]> wrote: > On Wednesday 15 August 2001 14:29, Joe Bellifont > wrote: > > I have to install the xml

regular expressions

2001-07-26 Thread Salvador Lopez
Hello All, how can i convert only the first letter of each word in a string without changing any other characters? Is this a job for regular expressions? For example, convert: FROM: "hello world. goodbyecruel world" TO: "Hello World. GoodbyeCruel World" any help is appre