random sub returns same results...

2003-04-05 Thread meriwether lewis
Hi Gurus! I have the following sub which creates a random string. Each time I call the sub in my perl script it returns a random string which is fine. The problem is every time I run the script the same strings are returned. I'm running perl 5.001 on Windows 2000. sub RandomStr { my $i=0; my

How do I keep track of user selections?

2003-03-07 Thread meriwether lewis
Hi Gurus! I currently am displaying a list of choices for the user to select: 1. 1996 Corvette 2. 2001 Hummer 3. 1985 Blazer 4. 1987 Firebird I'm asking the user to enter a comma separated list of their choices. If the user enters: 1,3,4 I need to store the year and make of their selection

Help! What am I doing wrong?

2003-03-06 Thread meriwether lewis
Hi Experts! Hoping someone can help me out. Here goes... bear with me, please. I have a file that contains a few email addresses. I read this file and push each line into an array: push(@AddrArray, $_); Then I do a foreach on the contents of the array: foreach $AddrToCheck (@AddrArray) { .

howto: jump from one sub back to another

2003-02-05 Thread meriwether lewis
Hi! OK, here goes... In the middle of sub2 called from sub1, is it possible to jump back to sub1 right after the call to sub2 so sub1 can complete? Thanks! Mark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

system() call fails

2003-02-04 Thread meriwether lewis
Hi Gurus! I'm running Perl 5.004_04 on Win2k. The system() command in the following script is failing with a: "No such file or directory" error. @MakeCmd = ("nmake", "-f", "Nmakefile.mak"); $rc = system(@MakeCmd); print "rc = $rc -> $!\n"; I can change it from an array to a scalar and it wil