Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Perl on OSX > BUG: strange be...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 985 of 1075
Post > Topic >>

BUG: strange behaviour with 'use open IN => ":byte"'

by david@[EMAIL PROTECTED] (David Cantrell) Sep 17, 2007 at 05:14 PM

On Sat, Sep 15, 2007 at 02:44:27PM +0200, macosx.perl.org@[EMAIL PROTECTED]
> If I run this script:
> #!/usr/bin/perl
> use open IN  => ":byte";
> use constant A => 1;
> 
> on a MacBook Pro (Intel) with perl version 5.8.6 (the pre-installed) I
> get this error:
>   Can't locate constant.pm in @[EMAIL PROTECTED]
  ...
> 
> if I change the line to:
> use open IN  => ":encoding(UTF16-BE)";
> 
> I get this error:
>   Unrecognized character \xE0 at /System/Library/Perl/5.8.6/constant.pm
line 1.

I get similar with 5.8.7 and 5.9.5 on NetBSD/Alpha, and 5.10.0 patch 31863
on Solaris/SPARC.  Congratulations, it looks like you've found a bug in
perl!

> In both cases:
> If I swap the lines, everything runs smoothly.

Same here. I've CCed p5p on this mail.

-- 
David Cantrell | A machine for turning tea into grumpiness

    "There's a hole in my bucket, dear Liza, dear Liza."
    "WHAT MAKES YOU SAY THERE IS A HOLE IN YOUR BUCKET?"
 




 2 Posts in Topic:
strange behaviour with 'use open IN => ":byte"'
macosx.perl.org@[EMAIL PR  2007-09-15 14:44:27 
BUG: strange behaviour with 'use open IN => ":byte"'
david@[EMAIL PROTECTED]   2007-09-17 17:14:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 22:28:47 CDT 2008.