RE: searching for files using perl

2003-04-02 Thread Peter Kappus
for more info: perldoc File::Find within your "wanted" sub the default variable $_ is set to the name of the current filename within the current directory. $File::Find::dir gives you the path of the current directory $File::Find::name gives you the full path to the current file (there are some o

RE: searching for files using perl

2003-04-02 Thread Lile, James AZ2 (VAW-115)
Shawn Sharp Cc: [EMAIL PROTECTED] Subject: RE: searching for files using perl Shawn Sharp wrote: > I created the following code to search for extention .PBD files in the > htdocs/PBD folder while using the apache webserver. However it will only > search in the cgi-bin folder for these

RE: searching for files using perl - CORRECTION

2003-04-01 Thread Peter Kappus
oops... perldoc File::Find (not Find::File ...duh) -Original Message- From: Peter Kappus If you're just searching for files, this is probably a great opportunity to use the File::Find module. I reinvented the wheel about four times before I discovered this one...d'oh! oh yeah,

RE: searching for files using perl

2003-04-01 Thread Peter Kappus
Shawn Sharp wrote: > I created the following code to search for extention .PBD files in the > htdocs/PBD folder while using the apache webserver. However it will only > search in the cgi-bin folder for these files. What am I doing wrong? If you're just searching for files, this is probably a gre

Re: searching for files using perl

2003-04-01 Thread Wiggins d'Anconia
Shawn Sharp wrote: Can someone help on this one? I created the following code to search for extention .PBD files in the htdocs/PBD folder while using the apache webserver. However it will only search in the cgi-bin folder for these files. What am I doing wrong? #!/perl/bin/perl use warnings; us

searching for files using perl

2003-04-01 Thread Shawn Sharp
Can someone help on this one? I created the following code to search for extention .PBD files in the htdocs/PBD folder while using the apache webserver. However it will only search in the cgi-bin folder for these files. What am I doing wrong? #!/perl/bin/perl use warnings; use strict; use CGI