Nothing in perldelta describes this difference; can't find any ref's via google or search on 5.10/mulitple/package.
Oddity: with use v5.10.0 (in any of the stringy versions),
a second package delivers a syntax error. For example, the code below fails with:
syntax error at hak.pm line 6, near "package bar"
Adding semi-colons after the sub's allows the code to compile, but I don't remember seeing anything about semicolons being required after sub def's -- even ones before package declarations.
Or is there something else in the perldelta that I've missed?
use v5.10.0;
package foo;
foo {}
package foo::bar;
bar {}
1
__END_
so much for my editing skills -- sorry for wasting your time -- the original was frying itself with the subs in place.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.