Re: Some few basic Perl questions

2002-11-24 Thread Jenda Krynicky
From: "Mystik gotan" <[EMAIL PROTECTED]> > Hiya, > > I got some basic Perl questions. Hope you don't mind answerring them? > > 1) What is the use of just putting $var; on 1 line? Example: > #!usr/bin/perl -wT > > # some code > $var; > > Does this technique rescopes the variable? No. It doesn't

Re: Some few basic Perl questions

2002-11-23 Thread dan
i'm unsure about the first question, but your answer to the 2nd one, is, if you are using more than 1 script in your program, and you require() it, the script that's require()'d must have 1; as the last line. this way, perl knows it's the end of the file, and not to read any further. it returns a "

RE: Some few basic Perl questions

2002-11-23 Thread Beau E. Cox
mber 23, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: Some few basic Perl questions Hiya, I got some basic Perl questions. Hope you don't mind answerring them? 1) What is the use of just putting $var; on 1 line? Example: #!usr/bin/perl -wT # some code $var; Does this technique rescopes the v

Some few basic Perl questions

2002-11-23 Thread Mystik gotan
Hiya, I got some basic Perl questions. Hope you don't mind answerring them? 1) What is the use of just putting $var; on 1 line? Example: #!usr/bin/perl -wT # some code $var; Does this technique rescopes the variable? 2) Why is exit() or 1; used on the LAST line. I understand it being on some l