Calamitous Context: Stop Breaking My Code!

By Aaron Crane (‎arc‎) from Edinburgh.pm, London.pm
Date: Monday, 20 August 2012 16:10
Duration: 20 minutes
Target audience: Intermediate
Language: English
Tags: best_practices context style wantarray

You can find more information on the speaker's site:


Context is a pain, especially with function return values. Even seemingly helpful and innocuous context-sensitive functions can lead to hard-to-spot bugs elsewhere. This talk is a plea for sanity.

After showing examples of different ways in which context can cause subtle problems, and explaining why the recommendations in Perl::Critic and Damian Conway’s Perl Best Practices don’t entirely help, it contains guidelines for writing Perl that isn’t subject to these hidden flaws, so that you can avoid causing wrath in others.


Attended by: Zbigniew Lukasiak (‎zby‎), Jean Forget, Gabriele Hack (‎gabimuc‎), Olivier Mengué (‎dolmen‎), Michael Jemmeson (‎michael‎), Dagfinn Ilmari Mannsåker (‎ilmari‎), Alexander Hartmaier (‎abraxxa‎), Martin Becker (‎martin‎), Gunnar Koppel (‎wk‎), Catalin Ciurea (‎catalin‎), Erik Johansen (‎uniejo‎), Aaron Crane (‎arc‎), Patrick Mevzek, Frank Lichtenheld (‎djpig‎), Claes Jakobsson (‎claes‎), Henrik Hald Nørgaard, Fredrik Thunberg (‎Thunis‎), Mike Eve, Peter Heuchert, Oskari Ojala (‎Okko‎), Kenneth Power, Herbert Leitz, Andreas Altergott, Ole Voß, Tobias Reimann, Martin Vorländer (‎mvorl‎), Alex Timoshenko, Winfried Puchinger (‎winpuc‎), Caio Romão, Sören Laird Sörries, David Farrell (‎dnmfarrell‎), Ben Tisdall (‎bentis‎), Jeroen Visser (‎jvisser‎), Anton Berezin (‎Grrrr‎), Damien Krotkine (‎dams‎), Darko Obradovic, Philippe Bruhat (‎BooK‎), Vincent Bachelier (‎geistteufel‎), Martin Evans (‎mjevans‎), Aristotle, Nicolas Mendoza (‎nicomen‎), Paolo Sinigaglia (‎psini‎), Felix Antonius Wilhelm Ostmann (‎Sadrak‎), Matthias Zeichmann, Patrick Michaud (‎Pm‎), Michele Beltrame (‎arthas‎), Sébastien Aperghis-Tramoni (‎maddingue‎), Stepan Cenek, Laurent Boivin (‎Elbeho‎),
Platin Sponsors Gold Sponsors Silver Sponsors Sponsors

Want to sponsor YAPC::EU? See the sponsor packages