f



Perl 5.6 and Perl 5.8

Hi, I am new to this newsgroup, hence you might have discussed this
topic in the past. Sorry for this.

Here stands my problem: I wrote a network daemon that has been working
fine under Perl 5.6 and Red Hat 7.3 for many months.

Then I installed Red Hat 8, and Perl 5.8 that comes togheter, and the
script started failing continuously.

I investigated and discovered that Perl 5.8 introduces Unicode as a
default, but there should be more than this.

I solved the problem continuing running RedHat 7.3 and Perl 5.6, but I
don't want to surrender because soon or later I should install some more
recent RedHat release.

These are my questions: is Perl 5.8 backward compatible ? If not, how
can I trace *all* the differences ? Is it possible that the Perl porters
permitted RedHat to distribute a bugged Perl release ? How can I stay
up-to-date with potential Perl problems ?

TIA. Alvise.
0
Alvise
6/26/2003 6:25:18 AM
comp.lang.perl.misc 33233 articles. 2 followers. brian (1246) is leader. Post Follow

4 Replies
686 Views

Similar Articles

[PageSpeed] 39

Alvise Valsecchi <alvise@hochfeiler.it> wrote:
AV> Hi, I am new to this newsgroup, hence you might have discussed this
AV> topic in the past. Sorry for this.

AV> Here stands my problem: I wrote a network daemon that has been working
AV> fine under Perl 5.6 and Red Hat 7.3 for many months.

AV> Then I installed Red Hat 8, and Perl 5.8 that comes togheter, and the
AV> script started failing continuously.

I don't use Red Hat, so I don't know about problems associated
with upgrading to its version 8.

Exactly how does it fail?  You might have to put logging and
debugging code in your daemon to find out.

AV> I investigated and discovered that Perl 5.8 introduces Unicode as a
AV> default, but there should be more than this.

It's hard to tell whether Unicode is the source of the problem until
you say what the problem is.

[ snip ]

AV> These are my questions: is Perl 5.8 backward compatible?

Should be.

[ snip ]

Regards,

Nicholas

-- 
"Why shouldn't I top-post?"    http://www.aglami.com/tpfaq.html
"Meanings are another story."  http://www.ifas.org/wa/glossolalia.html
0
Nicholas
6/26/2003 7:06:27 AM
Alvise Valsecchi wrote:

(snipped)

> Here stands my problem: I wrote a network daemon that has been working
> fine under Perl 5.6 and Red Hat 7.3 for many months.
 
> Then I installed Red Hat 8, and Perl 5.8 that comes togheter, and the
> script started failing continuously.
 
> These are my questions: is Perl 5.8 backward compatible ? If not, how
> can I trace *all* the differences ? Is it possible that the Perl porters
> permitted RedHat to distribute a bugged Perl release ? How can I stay
> up-to-date with potential Perl problems ?


I have encountered very similar problems with a Perl 5.8 install. However,
these problems extend well beyond Perl, actually include problems with
Apache 2.x which is bundled with Perl 5.8 in some packages. These are
problems similar to yours but with Apache/Perl rather than Redhat/Perl.

My solution for determining what will work and what will not work with
newer versions of Apache and Perl, is to install the new version of
Apache/Perl on a separate drive, and test "over there." You may also
install in unique directory trees for the same effect.

This affords an ability to retain my current Apache 1.3x and Perl 5.6
until I can resolve problems introduced by newer versions of both.

You can find a lot of information about your newer packages by consulting
Redhat documentation and Perl documentation. I understand Perl porters
maintain fact sheets on changes in Perl core with newer versions. Doing
this is very helpful.

However, you truly need to run "reality tests" to determine, factually,
what you may expect. Reading documentation provides a good beginning
place but often falls short of what will happen in reality.

Consider running dual installations; one which works as you expect,
the other, a "broken" version you need to learn, by direct testing.


Purl Gurl
-- 
"I am the egg which sticks to your teflon pan."
  - Kira
0
Purl
6/26/2003 4:12:16 PM
In article <3EFA91CE.19926486@hochfeiler.it>,
Alvise Valsecchi  <alvise@hochfeiler.it> wrote:
>Here stands my problem: I wrote a network daemon that has been working
>fine under Perl 5.6 and Red Hat 7.3 for many months.
>
>Then I installed Red Hat 8, and Perl 5.8 that comes togheter, and the
>script started failing continuously.

There are a lot of things that fail with RedHat-8, straight out of the
box.  For instance, the 'man' command.  Instead of hyphens or double
hyphens, it produces en-dash and em-dash, which do not have
displayable glyphs in the default font.

I found that adding this to my .login file helps:

  if ($?LANG) then
    if ($LANG == en_US.UTF-8) setenv LANG en_US   # RedHat-8.0 KDE font errors
  endif

Perl-5.8 is sensitive to LANG being set to any UTF setting.
Try using a non-UTF setting before running your perl programs.
	-Joe
-- 
See http://www.inwap.com/ for PDP-10 and "ReBoot" pages.
0
inwap
6/29/2003 7:47:18 AM
On Sun, Jun 29, Joe Smith inscribed on the eternal scroll:

> There are a lot of things that fail with RedHat-8, straight out of the
> box.

Really?  I honestly don't recall having the problems that you are
describing.  I'm certainly not having them now.

> For instance, the 'man' command.  Instead of hyphens or double
> hyphens, it produces en-dash and em-dash, which do not have
> displayable glyphs in the default font.

This is the font in the (gnome) terminal window, is it? What is your
"default font"?  Mine seems to be Lucida Typewriter. I don't see the
problems you are describing.  Maybe I had changed it from the
installation default without really thinking - I'm not sure.  But
choosing other plausible monospace fonts, I still don't see the
problems you're describing.

> I found that adding this to my .login file helps:
>
>   if ($?LANG) then
>     if ($LANG == en_US.UTF-8) setenv LANG en_US # RedHat-8.0 KDE

Well, my LANG setting is en_GB.UTF-8 - it seems to work well for me.

> Perl-5.8 is sensitive to LANG being set to any UTF setting.

Indeed it is, as part of the move towards Unicode. It's true enough
that the move had a few knock-on effects, but it's the way things are
going: I think I'd recommend coming to terms with it as far as
possible, and only resorting to the backward move as a temporary
workaround while sorting things out properly:

> Try using a non-UTF setting before running your perl programs.

However, see
http://groups.google.com/groups?selm=bcftmm%24k88%241%40news.service.uci.edu

It appears that this specific Perl dependence on LANG will go away
again in 5.8.1.
0
Alan
6/29/2003 6:44:06 PM
Reply:

Similar Artilces:

upgrade perl 5.6 to perl 5.8.2
Would someone tell me the procedures to upgrade perl from 5.6 to 5.8.2? I would like to install the 5.8.2 on top of the 5.6. Will I mess up the perl 5.6 environment when I'm still testing the new version? > Would someone tell me the procedures to upgrade perl from 5.6 to 5.8.2? > I would like to install the 5.8.2 on top of the 5.6. > Will I mess up the perl 5.6 environment when I'm still testing the new > version? http://search.cpan.org/~nwclark/perl-5.8.2/INSTALL#Coexistence_with_earlier_ versions_of_perl5 talks about the coexistence different version of perl. However,...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #5
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #8
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

perl 5.8 or perl 5.10
Years ago I made a very little webhosting server on RedHat 7.3. This was intended for few domains of my friends but now my business expand, I have many domains and must upgrade my server (HW + SW). The question is which verson of Perl to install. Perl 5.8 or Perl 5.10? Version 5.10 look as logical solution but time to time I read about nasty bug ;-) To understand me right: I like a stable solutions and not like to must patch (anything) every few days. What do you recommend me? Which version and why? -- Petr Vileta, Czech republic (My server rejects all messages from Yahoo and Hotmail. S...

mismatch between Perl 5.6 and Perl 5.8 in printing high precision values.
printf("%.32g\n",0.99999999976716936); Perl 5.6.1 output: 0.99999999976716936 --> GOOD Perl 5.8.6 output: 0.99999999976716925 --> ERROR Any reason for such mismatch ? Please let me know how to avoid that or any alternative approach if any. Thanks Vivek vivekanand.naik@gmail.com wrote: > printf("%.32g\n",0.99999999976716936); > > Perl 5.6.1 output: > 0.99999999976716936 --> GOOD > > Perl 5.8.6 output: > 0.99999999976716925 --> ERROR > > > Any reason for such mismatch ? > Please let me know how to avoid that or any al...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #6
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

Install Perl 5.8.7 i386 for ImageMagick-perl-6.2.4-5.i386
Hi. I want to install ImageMagick-perl-6.2.4-5.i386.rpm which requires Perl 5.8.7. I found perl-5.8.7-4.i586.rpm with size 12 MB, and tried. It created /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi directory, but it didn't work. And I found perl-5.8.7-4.i386.rpm with size only 36K. This perl-5.8.7-4.i386.rpm needs several other packages. I installed all the dependent packages, but it won't create /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi which is required by ImageMagick-perl-6.2.4-5. Is there a BIG package called perl-5.8.7-?.i386.rpm ? Thank you for your he...

Tk804.025 and Perl 5.8.1-RC4 (was Tk800.024 and Perl 5.8.1-RC4)
On Monday, September 8, 2003, at 07:52 PM, Steve Lidie wrote: > Path: > Lehigh.EDU!newsread.com!newsstand.newsread.com!kibo.news.demon.net!demo > n!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newshosting > .com!news- > xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!netnews.proxy.luc > ent.com!news > From: "Tulan W. Hu" <twhu@lucent.com> > Newsgroups: comp.lang.perl.tk,comp.lang.perl.misc > Subject: Tk800.024 and Perl 5.8.1-RC4 > Date: Mon, 8 Sep 2003 16:21:33 -0400 > Organization: Lucent Technologies &g...

Perl 5.8 and Perl 5.10 Porting
I have a simple script ===== use charnames ':full'; $ReNum = qr/(\\d+[A-Z]?)/i; $ReNumRng = qr/$ReNum[\N{EN DASH}]$ReNum/; $Line = "foo"; $Line =~ /$ReNumRng/; ===== This works in perl 5.8 and I am getting a big error in 5.10. Constant(\N{EN DASH}) unknown: (possibly a missing "use charnames ...") in regex ; marked by <-- HERE in m/(?i-xsm:(\\d+[A-Z]?))[\N{EN DASH} <-- HERE ] (?i-xsm:(\ \d+[A-Z]?))/ at C:\projects\test.pl line 4. Appreciate any help in resolving this. Regards Dominic In comp.lang.perl.misc, Aqua <junk@dlink.org> wrote:...

Upgrade perl from 5.8.6 to 5.8.8
Hi all, Perl N00b here in need of a bit of kind assistance! I am attempting to upgrade Perl from 5.8.6 to 5.8.8 on Fedora Core 4 I have performed the following: Run: perl -V to get the version (5.8.6) Downloaded perl version 5.8.8 and untarred Run: ./Configure -des -Uusethreads Run: make Run: make test Run: make install All goes well - how do i alter my installation to now use this version of perl, as running perl -V returns the same version information? Many thanks for any help! Ben <ben.wilder@gmail.com> wrote in comp.lang.perl.misc: > Hi all, > > Perl N00b here in ...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? 283187
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after P...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #14
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #7
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #19
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after Perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #17
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #10
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #12
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #15
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #4
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Pelr 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #16
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? 434527
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after P...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #11
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #13
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? #18
This is an excerpt from the latest version perlfaq1.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 1.4: What are Perl 4, Perl 5, or Perl 6? (contributed by brian d foy) In short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is the future. The number after perl (i.e. the 5 after Perl 5) is the m...

Web resources about - Perl 5.6 and Perl 5.8 - comp.lang.perl.misc

Perl Jedi - David Mueller's Personal Site
David Mueller's personal site. Perl Jedi Cool Stuff Maker Works Slashdot SourceForge XBMC XKCD Obfuscated Tribute SparkFun : Great Site ...

The Perl Foundation
It is common knowledge that the Perl Foundation did not get accepted to this year's GSoC. The official line from Google was that we were rejected ...

PerlGP - Perl Genetic Programming System
... than lilgp), but development times should beshorter. You can make use of C-coded extensions, like PDL, forserious number crunching. PerlGP ...

Perl, Saarland - Wikipedia, the free encyclopedia
... 6°22′E  /  49.46667°N 6.36667°E  / 49.46667; 6.36667 Coordinates : 49°28′N 6°22′E  /  49.46667°N 6.36667°E  / 49.46667; 6.36667 Perl is ...

Planet Perl Iron Man
Hey everyone! Another year has passed and it's now 5 years since I've been blogging here on catonmat! In this post I wish to summarize this year's ...

Mike Grim Ree-Perl (@MikeLeePearl) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

All sizes - Perl hackers in a local Chinese restaurant - Flickr - Photo Sharing!
Flickr is almost certainly the best online photo management and sharing application in the world. Show off your favorite photos and videos to ...

High rate offer for savers may not be the PERL it seems
it would be a big mistake to think that a bank hybrid, let alone the stock, is as safe as a government-guaranteed term deposit

The A-Z of Programming Languages: Perl
... undertaking a series of investigations into the most widely-used programming languages. This time we chat with Larry Wall, creator of the Perl ...

Perl creator hints at imminent Perl 6 release
In his annual "State of the Onion" speech at the O'Reilly Open Source Conference (OSCON), Perl creator Larry Wall hinted that the long-awaited ...

Resources last updated: 2/19/2016 3:51:07 AM