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

RE: Using require()

Thread Previous
From:
Scott Lutz
Date:
February 6, 2002 15:56
Subject:
RE: Using require()
Message ID:
71F9B21D7882714CBC2AC8B44711F2D306A416@backup.intranet.pacific.ca
	if (a = true) {
	require 'naveen.pl";
>>> note that the above line has mismatched quotes
	} else {

Scott Lutz
Pacific Online Support
Phone: 604.638.6010
Fax: 604.638.6020
Toll Free: 1.877.503.9870
http://www.paconline.net



-----Original Message-----
From: Naveen Parmar [mailto:naveen_parmar@hotmail.com]
Sent: February 6, 2002 1:52 PM
To: beginners@perl.org
Subject: Using require()


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


-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org


Thread Previous


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