Re: Module help

2007-12-20 Thread Chas. Owens
On Dec 20, 2007 2:01 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 12/20/07, Andy Dixon <[EMAIL PROTECTED]> wrote: > > > sub test($) { > > Subroutine prototypes, like "($)" here, generally cause more harm than > good, alas. Most programmers should avoid using them in most cases. snip You should

Re: Module help

2007-12-20 Thread Andy Dixon
Thanks everyone who helped - I am new to perl, and after coding with php and various other languages, I have not yet fully grasped some of perl's concepts...! Thanks once again!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org

Re: Module help

2007-12-20 Thread John W . Krahn
On Thursday 20 December 2007 10:36, Andy Dixon wrote: > > Hello, Hello, > I have written a small module with a function that returns some text. > > However, when I run it, from a test script, I get: > > Undefined subroutine &external::RETURN called at external.pm line 41. > > The subroutine is th

Re: Module help

2007-12-20 Thread Tom Phoenix
On 12/20/07, Andy Dixon <[EMAIL PROTECTED]> wrote: > sub test($) { Subroutine prototypes, like "($)" here, generally cause more harm than good, alas. Most programmers should avoid using them in most cases. > my $data = @_; You're using the "name" of the array in scalar context; this gives the n

RE: Module help

2007-12-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Andy Dixon [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 20, 2007 10:37 > To: Perl beginners > Subject: Module help > > Hello, > > I have written a small module with a function that returns some text. > > However, when I run it, from a test script, I

Re: Module help

2004-10-22 Thread David le Blanc
On Fri, 22 Oct 2004 16:34:52 -0400, Bob Showalter <[EMAIL PROTECTED]> wrote: > Jim Goh wrote: > > Hi, > > I try to use module CGI::Session:DB_File for the following: > > > > #!/usr/bin/perl > > > > use strict; > > use CGI; > > use lib '.'; > > This is unnecessary; . is a part of @INC by defa

RE: Module help

2004-10-22 Thread Bob Showalter
Jim Goh wrote: > Hi, > I try to use module CGI::Session:DB_File for the following: > > #!/usr/bin/perl > > use strict; > use CGI; > use lib '.'; This is unnecessary; . is a part of @INC by default. > use CGI::Session::DB_File; > ... > and the DB_File module also locate same directory as t

RE: Module help (local variables in seperate directory)

2004-06-03 Thread Bob Showalter
Andrew Koebrick wrote: > I am having trouble creating a modules which splits its functions and > variables between two files in two separate directories. > > I want to have a set of global functions (i.e. open database > connection...) which would live in the main Perl path, and a local > configu