• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Panther bug: Perl 'tr/\\0-\\xFF//CU' no longer works!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Panther bug: Perl 'tr/\\0-\\xFF//CU' no longer works!?


  • Subject: Panther bug: Perl 'tr/\\0-\\xFF//CU' no longer works!?
  • From: Harald E Brandt <email@hidden>
  • Date: Thu, 19 Feb 2004 19:08:46 +0100

The well known "idiom" for translating to unicode in a perl statement 'tr/\\0-\\xFF//CU' no longer works in Panther!!?

What has happened? The Perl version is still 5.8x something.

Although not really a pure AppleScript question, I hope you do not take offence - using Perl in 'do shell scripts' to complement AppleScript is so common (and so necessary) that I still think the question is very relevant here (and I expect Chris N or JD to know about it:-)).

I have found nothing on the net that describes the change in the definition, and I have tried it on two different computers. It does not matter if I run it in a 'do shell script' or in the terminal - same result "Bareword found where operator expected", and it is clearly the 'CU' it does not like. 'use utf8' or not does not matter.

I *really* need good (fast) solution.


PS: For those who would like to try it, use this:
set perlScript to "$_ = qq(asdfgh); tr/\\0-\\xFF//CU; print"
do shell script "perl -e " & (quoted form of perlScript)

With the 'CU' it fails, without 'CU' it does not fail.


Best Regards

______heb__________________________
Harald E Brandt http://bragit.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Panther bug: 'missing value' for modification date??
  • Next by Date: Re: OT Entourage send Meeting invite Outlook on PC
  • Previous by thread: Re: RegEx question
  • Next by thread: QuarkXPress 6.1 sizing
  • Index(es):
    • Date
    • Thread