Good point about the semi-colon, I missed that (too much python).
FWIW it is good practice to use :
#!/usr/bin/env perl
rather than:
#!/usr/bin/perl
At the start of your script, so that perl can be found if it is relocated.
François
On Oct 5, 2012, at 4:54 PM, Doug McNutt <[email protected]> wrote:
> At 20:43 +0100 10/5/12, John Delacour wrote:
>> I installed Mountain Lion yesterday, probably the worst decision I ever
>> made! Some of Apple's own main apps now seem to be buggier than they were 5
>> years ago with no useful new features.
>>
>> None of my UNIX filters in BBEdit are now working.
>>
>> For example this script
>>
>> #!/usr/bin/perl
>> while (<>) {
>> print "* $_"
>> }
>>
>> should put an asterisk at the beginning of each line in the front document
>> but nothing happens at all with this script or any other.
>>
>> Mountain Lion has caused me so much trouble that I'm now exhausted, so
>> perhaps I'm missing something obvious.
>>
>> Any help out there?
>>
>> JD
>
> You might need a semicolon after the print, But it is the last line between
> {}s so whonoze?
>
> Apple thinks UNIX users are out to destroy their machines.
>
> Others, in the SciTech area, have reported that many UNIX executables have
> been moved from /usr/bin/ to something like /usr/share/bin/... though Apple
> itself uses perl so perhaps not.
>
> Check which perl top see if a usable perl is found with your $PATH and your
> path might not be what you think when calling from within bbedit.
>
>
> --
>
> --> From the U S of A, the only socialist country that refuses to admit it.
> <--
>
> --
> --
> You received this message because you are subscribed to the
> "BBEdit Talk" discussion group on Google Groups.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> <http://groups.google.com/group/bbedit?hl=en>
> If you have a feature request or would like to report a problem,
> please email "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>
>
>
--
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>