Bug 13296 - must use push for @INC to use the current directory
must use push for @INC to use the current directory
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: perl (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-06-30 16:55 EDT by Becky Miller
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-08-14 11:15:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Becky Miller 2000-06-30 16:55:26 EDT
We must include the line 
push(@INC, ".");
for perl script to find the require argument in the current directory.
Comment 1 Nalin Dahyabhai 2000-07-03 03:50:38 EDT
What do you get when you run "perl -V"?  I'm unable to reproduce this problem
with this test case:

foo1.pl:
	print("foo1\n");
foo2.pl:
	require "foo1.pl";

Running foo2 prints "foo1".
Comment 2 Cristian Gafton 2000-08-08 22:45:45 EDT
assigned to nalin
Comment 3 Nalin Dahyabhai 2000-08-20 01:22:48 EDT
Closing.

Note You need to log in before you can comment on or make changes to this bug.