Skip to content

Instantly share code, notes, and snippets.

@preaction
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save preaction/11099029 to your computer and use it in GitHub Desktop.
Save preaction/11099029 to your computer and use it in GitHub Desktop.
The remarkable changes in Perl since 5.8.x

If you upgrade to 5.10 you get:

  • say
  • state
  • defined-or (//)
  • Switch (given/when)
  • Module::CoreList - List the modules your Perl has in core

If you upgrade to 5.12 you get:

  • The yada-yada operator (...)
  • each(), keys(), and values() on arrays
  • autodie

If you upgrade to 5.14 you get:

  • Non-destructive substitution (s///r)
  • More reliable exception throwing
  • HTTP::Tiny
  • JSON::PP

If you upgrade to 5.16 you get:

  • Reference to the current running sub (SUB)

If you upgrade to 5.18 you get:

  • Lexical subroutines (my sub, our sub, state sub)

Awaiting us in 5.20:

  • Hash-based slices (%hash{...} and %array[...])
  • EXP: Postfix dereference operators ($ref->%*)
  • EXP: Subroutine signatures (sub mysub( $foo, $bar, @baz ) { ... })
  • IO::Socket::IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment