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
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
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
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
> -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
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
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
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