Re: installed modules - faq question 3.4 What am I doing wrong?
- From: randp@xxxxxxx
- Date: 16 May 2005 11:13:10 -0700
Thanks, I just put in use strict and use warnings to make sure.
My os is Redhat 7.3. I ran the script as a regular user and also as
root (in case permission denied). Same output.
My perl is 5.6.1 My @INC is :
/usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl
..
Under "/usr/lib/perl5/5.6.1/" I have a directory called "ExtUtils" with
a bunch of .pm files in there. (These are standard modules).
I am not getting these listed. (just as an example). I also have
others not being listed. But I have other subdirectories that have .pm
files that are being listed.
Would there be a problem with the "if -f _ " construct. I just copied
it from the FAQ.
Update : I just ran the script without one of the conditions (ie: "-f
_" ) and it works. So I guess "-f _" is causing some problems. It is
a file test operator to see if the file is a plain text file. The
single underscore I don't fully understand except that it saves a
system call. Maybe I can get a better explanation.
thanks,
Roshan
.
- Follow-Ups:
- Re: installed modules - faq question 3.4 What am I doing wrong?
- From: Jim Gibson
- Re: installed modules - faq question 3.4 What am I doing wrong?
- From: Gunnar Hjalmarsson
- Re: installed modules - faq question 3.4 What am I doing wrong?
- References:
- installed modules - faq question 3.4 What am I doing wrong?
- From: randp
- Re: installed modules - faq question 3.4 What am I doing wrong?
- From: A. Sinan Unur
- installed modules - faq question 3.4 What am I doing wrong?
- Prev by Date: Re: Need help sending mail through an Exchange Server
- Next by Date: Re: installed modules - faq question 3.4 What am I doing wrong?
- Previous by thread: Re: installed modules - faq question 3.4 What am I doing wrong?
- Next by thread: Re: installed modules - faq question 3.4 What am I doing wrong?
- Index(es):
Relevant Pages
|
|