*blink*

Are you suggesting you have never heard of programs broken because of an upgrade of Perl? Where do you live? Mars?

Here's a goodie, which both shows the lack of standards, and the breakage of upgrades. Look at the following program:

sub AUTOLOAD {print $AUTOLOAD} *foo = bar; foo ();
Three questions:
  1. The program should print:
    1. main::foo
    2. main::bar
    3. Something else
  2. perl5.005_03 prints:
    1. main::foo
    2. main::bar
    3. Something else
  3. perl5.6.0 prints:
    1. main::foo
    2. main::bar
    3. Something else
Without actually running the program, but with consultation of all the documentation that comes with Perl, and any version of the Camel you like, could you answer all questions correctly?

Here's another program:

my %hash = (foo => 'bar'); chop for values %hash; print values %hash, "\n";
The program prints ba when run with 5.8.6, but it prints bar when run with 5.005_03. And that wasn't a bug fix.

Third program:

print 80.101.114.108;
Prints 80.101114.108 in 5.005_03 and earlier, but prints Perl from 5.6.0 onwards. You might say that noone writes 80.101.114.108 in normal program, and that's true. But evalled computer generated code can.

I'm not saying these examples are huge problems, and it takes a lot resources to fix. But breakage does happen. Over and over and over again. And it does take resources to find the breakage. And for large organisations running a myriad of programs, that is a problem.


In reply to Re^8: Ansi Perl by Anonymous Monk
in thread Ansi Perl by Eyck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.