on 10/1/02 10:39 AM, [EMAIL PROTECTED] purportedly said: > I think the clear answer is that putting modules and data into User space > was a mistake. And that using directories in "System space" and absolute > pathnames will cure my headaches.
By and large. > Scream if I still don't get it... > > (Script saved in /usr/local/bin) > > #!/opt/perl/bin/perl -w > use lib qw(/site_perl); > use MY_MODULE; > open (IN, "/var/input/raw.txt") or die "Failed to open input file: $!\n"; > .... What is the "/site_perl" location for? That's a non-standard location for the standard "site_perl", which should already be in @INC so you don't have to indicate it. /var is a standard place to put large data files (databases, log files, etc), but it is not clear what "raw.txt" is for. If it is some data that the script needs, it is probably better to make part of the script under __DATA__. If it is user-defined, you should allow the user the pass the file as a parameter, and not make them store it in /var. If this input data is from another program and not from user interaction it is probably safer to use /tmp. Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet"