[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Elementary Question



On Tue, 9 Mar 1999, Noe Dinnerstein:  President, BodhiSoftWare wrote:

> !#perl
> 
> open ( IN,   'README') or die ("Input File open failed\n");

You might want to switch the ! and # in the first line so you have
'#!perl'.

I'm not even sure why this works for you. Under ActiveState perl, the ! is
negating the first open(), and the script reports that the open() failed.
Note that the #perl chunk has just become a very ordinary comment, which
extends to the end of the line, but the expression that the ! is working
on goes to the first ;.

Arved



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org