Re: Perl-case statement, and module syntax error

2001-07-10 Thread Chas Owens
7;switch' - documented in the > 'perlsyn' perldoc. There is no 'case' or 'switch' function, but you can > emulate it with a block & exit routine, as documented. > > Jason > > ----- Original Message - > From: "Sparkle Williams

Re: Perl-case statement, and module syntax error

2001-07-10 Thread Paul
--- Michael Fowler <[EMAIL PROTECTED]> wrote: > On Tue, Jul 10, 2001 at 09:43:26AM -0400, Sparkle Williams wrote: > > I'm having two problems > > 1) Is there an equivalent of the case function in Perl? > > perldoc -q switch, or Check out Damian Conway's Switch module. http://search.cpan.org/doc

Re: Perl-case statement, and module syntax error

2001-07-10 Thread Michael Fowler
On Tue, Jul 10, 2001 at 09:43:26AM -0400, Sparkle Williams wrote: > I'm having two problems > 1) Is there an equivalent of the case function in Perl? perldoc -q switch, or http://www.perldoc.com/perl5.6/pod/perlfaq7.html#How%20do%20I%20create%20a%20switch%20or%20case%20statement%3f > $ftp = Ne

Re: Perl-case statement, and module syntax error

2001-07-10 Thread Jason Purdy
Sparkle Williams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:43 AM Subject: Perl-case statement, and module syntax error > I'm having two problems > 1) Is there an equivalent of the case function in Perl? > > 2)I'm also gettin

Perl-case statement, and module syntax error

2001-07-10 Thread Sparkle Williams
I'm having two problems 1) Is there an equivalent of the case function in Perl? 2)I'm also getting a syntax error for the following part of my program that I'm attempting to run on my Unix system. I get a syntax error message for 'new($url, ', 'login($username, 'cwd($ftp_home), ', and 'get($fil