Re: Fw: 2 Questions

2002-07-04 Thread John Brooking
--- 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":

Fw: 2 Questions

2002-07-03 Thread Kyle Babich
> 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

Re: 2 Questions

2002-07-03 Thread Kyle Babich
; 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). >

Re: 2 Questions

2002-07-03 Thread Ovid
--- 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

RE: 2 Questions

2002-07-03 Thread Nikola Janceski
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

Re: 2 Questions

2002-07-03 Thread Kyle Babich
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); > > >

RE: 2 Questions

2002-07-03 Thread Nikola Janceski
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 &

Re: 2 Questions

2002-07-03 Thread Kyle Babich
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

Re: 2 Questions

2002-07-02 Thread Ovid
--- 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() {

2 Questions

2002-07-02 Thread Kyle Babich
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