What do you get if you run this script?
#!/usr/bin/perl -w
use strict;
my $data = "data.txt";
print `ls -l $data`;
__END__
-Michael
>>> David Gilden <[EMAIL PROTECTED]> 03/18/03 10:36AM >>>
> But what directory were you in when you ran the program? That's a
lot
> more important than where the program is.
/Users/dowda/Desktop/tmp test/read-prices.pl
OSX Jaguar, G4
Randal L. Schwartz <[EMAIL PROTECTED]>,
> The following message is a courtesy copy of an article
> that has been posted to perl.beginners as well.
>
> >>>>> "David" == David Gilden <[EMAIL PROTECTED]> writes:
>
> David> Hi List,
> David> Any reason why this dies? error: " could not open data.txt
No such file or directory"
>
> --> The file and script reside in the same directory!!!
==============================================
Cora Connection: Your West African Music Source
Resources, Recordings, Instruments & More!
<http://www.coraconnection.com/>
==============================================
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]