Hi
On your advice I looked at the versions of Perl on my Mac.
If I do a 'which perl' I get /opt/local/bin/perl.
However I also found another version of Perl at /usr/bin/perl.
So I found the following:
This does not work
/usr/bin/perl < app.pl
This works!
/opt/local/bin/perl < app.pl
My Mac is rather old and I have messed around with it on numerous occasions. Both versions appear to be v5.8.8.
So I cannot explain what is broken, but at least my little app works now.
Mark |