Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found this <a href="http://use.perl.org/articles/07/12/26/1628211.shtml" rel="noreferrer">article</a> useful.</p> <p>This <a href="http://www.regex-engineer.org/slides/perl510_regex.html" rel="noreferrer">one</a> is more focused on 5.10 Advanced Regular Expressions.</p> <p>And also <a href="http://www.perl.com/pub/a/2008/04/23/a-beginners-introduction-to-perl-510.html" rel="noreferrer">A beginners' Introduction to Perl 5.10</a>.</p> <p>Finally, this excellent <a href="http://www.perlmonks.org/?node_id=654086" rel="noreferrer">summary</a> on why you should start using Perl 5.10 and from which I extracted the following:</p> <ul> <li>state variables No more scoping variables with an outer curly block, or the naughty my $f if 0 trick (the latter is now a syntax error). </li> <li>defined-or No more $x = defined $y ? $y : $z, you may write $x = $y // $z instead. </li> <li>regexp improvements Lots of work done by dave_the_m to clean up the internals, which paved the way for demerphq to add all sorts of new cool stuff. </li> <li>smaller variable footprints Nicholas Clark worked on the implementations of SVs, AVs, HVs and other data structures to reduce their size to a point that happens to hit a sweet spot on 32-bit architectures </li> <li>smaller constant sub footprints Nicholas Clark reduced the size of constant subs (like use constant FOO => 2). The result when loading a module like POSIX is significant. </li> <li>stacked filetests you can now say if (-e -f -x $file). Perl 6 was supposed to allow this, but they moved in a different direction. Oh well. </li> <li>lexical $_ allows you to nest $_ (without using local). </li> <li>_ prototype you can now declare a sub with prototype <em>. If called with no arguments, gets fed with $</em> (allows you to replace builtins more cleanly). </li> <li>x operator on a list you can now say my @arr = qw(x y z) x 4. (Update: this feature was backported to the 5.8 codebase after having been implemented in blead, which is how Somni notices that it is available in 5.8.8). </li> <li>switch a true switch/given construct, inspired by Perl 6 </li> <li>smart match operator (~~) to go with the switch </li> <li>closure improvements dave_the_m thoroughly revamped the closure handling code to fix a number of buggy behaviours and memory leaks. </li> <li>faster Unicode lc, uc and /i are faster on Unicode strings. Improvements to the UTF-8 cache. </li> <li>improved sorts inplace sorts performed when possible, rather than using a temporary. Sort functions can be called recursively: you can sort a tree </li> <li>map in void context is no longer evil. Only morally. </li> <li>less opcodes used in the creation of anonymous lists and hashes. Faster pussycat! </li> <li>tainting improvements More things that could be tainted are marked as such (such as sprintf formats) </li> <li>$# and $* removed Less action at a distance </li> <li>perlcc and JPL removed These things were just bug magnets, and no-one cared enough about them. </li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload