develooper Front page | perl.beginners | Postings from February 2002

Using require()

Thread Next
From:
Naveen Parmar
Date:
February 6, 2002 13:52
Subject:
Using require()
Message ID:
F73z5VLNnBdxwh5JK6T0000f378@hotmail.com
Does require() work only twice? I've tried multiple loops only to get this 
to work a third time. After every time, however, it automatically exits.

Here's an example:

if (a = true) {
require 'naveen.pl";
} else {
print "You are not Naveen.\n";
exit;

As long as a = true, it should call 'naveen.pl', correct? Any ideas?

TIA,
- NP




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About