--- Kyle Babich <[EMAIL PROTECTED]> wrote:
> Sorry for bothering everyone again, but could
> someone tell me what to change
> so that I can import variables from external files
> and get them to work in
> the current file? (see original message)
>
> Thank you,
> Kyle
Copied from "perldoc CGI":
>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 11:07 AM
Subject: Re: 2 Questions
> Still getting the same problem, name requires explicit package name.
>
> #!/usr/bin/perl -wT
> use strict;
> use Data::Dumper;
> use CGI qw( :standard );
>
> print header ( &qu
;
Sent: Wednesday, July 03, 2002 11:37 AM
Subject: RE: 2 Questions
> why's the our in $name? you don't even use $name anywhere else.
>
> Here are some examples of "good" code using some of your ideas (still
don't
> know what you are trying to accomplish).
>
--- Kyle Babich <[EMAIL PROTECTED]> wrote:
> Still getting the same problem, name requires explicit package name.
>
> #!/usr/bin/perl -wT
> use strict;
> use Data::Dumper;
> use CGI qw( :standard );
>
> print header ( "text/html" );
>
> my $hash_ref = do ( 'fried.dat' ) || die "error: unable t
ins:
$name = "chicken";
{
name => 'fried'
}
> -Original Message-
> From: Kyle Babich [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 03, 2002 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: 2 Questions
>
>
> Still getting the same
EMAIL PROTECTED]>
Cc: "beginners-cgi" <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 9:25 AM
Subject: RE: 2 Questions
> scoping!!! my only scopes the end of the file!
>
> so my in fried.dat is scoped only in fried.dat.
>
> use our($name);
>
> >
scoping!!! my only scopes the end of the file!
so my in fried.dat is scoped only in fried.dat.
use our($name);
> -Original Message-
> From: Kyle Babich [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 03, 2002 9:19 AM
> To: [EMAIL PROTECTED]
> Cc: beginners-cgi
&
I'm still getting the $name requires explicit package name.
Here is what I have in index.pl
#!/usr/bin/perl -wT
use strict;
use Data::Dumper;
use CGI qw( :standard );
print header ( "text/html" );
my $hash_ref = do ( 'fried.dat' ) || die "error: unable to open
fried.txt\n";
print Dump
--- Kyle Babich <[EMAIL PROTECTED]> wrote:
> How can I import scalars, arrays, etc. from external perl and text
> files?
>
> This is what I have in index.pl:
>
> #!/usr/local/bin/perl -wT
> use strict;
> use CGI qw/ :standard /;
>
> print header ( 'text/html' );
>
> open(TEXT," while() {
How can I import scalars, arrays, etc. from external perl and text
files?
This is what I have in index.pl:
#!/usr/local/bin/perl -wT
use strict;
use CGI qw/ :standard /;
print header ( 'text/html' );
open(TEXT,") {
print;
}
close(TEXT) or die("error: fried.txt failed\n
10 matches
Mail list logo