Yup pretty sure it's the first line. # perl -d data_update.pl works just fine for debugging. But now I'm really confused, cam ein this morning, and it ran fine! only things I changed was some logic errors and added -w after #!/usr/bin/perl. It complains about something in the MIME::Entity module about an ambigious call to CORE::open() but runs! Someone suggested I check that my path includes . but I thought that's what the ./ was for?
Thanks, Eugene -----Original Message----- From: frater mus [mailto:[EMAIL PROTECTED] Sent: Monday, August 13, 2001 10:11 PM To: Eugene van Zyl Subject: Re: Bash/Perl weirdness [posted and mailed] 13 Aug 2001: "Eugene van Zyl" <[EMAIL PROTECTED]> wrote > I've got a perl script with the following permissions: > -rwxr-xr-x 1 root root 23980 Aug 13 15:55 data_update.pl > the first line in the script is: > #!/usr/bin/perl > which is where perl lives on Debian potato -> perl -V gives the correct > reponse ... but # ./data_update.pl gives me: > bash: ./data_update.pl: No such file or directory > What gives? What obvious thing am I missing here cause other scripts run Are you sure it's really on the *first* line, and that there are no typos? There's definitely something wrong with the magicline because the perl interpreter is not being invoked. You can prove this to yourself by doing a "perl ./data_update.pl" which will explicitly call the perl interpreter. -- L.V.X. the Great Work, CD-R, OTR http://www.mousetrap.net/~mouse/ Old Time Radio (OTR) OpenNap network http://www.mousetrap.net/OTRnap/