http://qs321.pair.com?node_id=677612


in reply to Perl Babysteps 1: Your First Simple Script

My only comment is that you please add the 'use strict;' and 'use warnings;' lines to your hello world script. Even if you gloss over them with a "well talk about those more later" comment.

I started down my Perl path without strict or warnings. When I started to see them in use (and use them myself) it was awkward annoying (all those new warning messages to wade through). It wasn't until later that I finally came to realize those warnings were for my own good and learned to embrace strict/warnings. It would have been easier and more productive to learn that lesson from day one.
  • Comment on Re: Perl Babysteps 1: Your First Simple Script

Replies are listed 'Best First'.
Re^2: Perl Babysteps 1: Your First Simple Script
by webfiend (Vicar) on Apr 21, 2008 at 20:25 UTC

    I think it's about time for a significant rewrite of this tutorial. I agree that strict and warnings are important practices, and I am working through how to introduce them without scaring away the people I am writing for. I wrote an updated version on my own site, but it ended up being so long that I needed to split it into multiple pages (Part 1, Part 2). Part of that is because I am incredibly long-winded, but it's also related to the fact that we are describing ways to change the fundamental behavior of Perl to somebody who does not yet understand what that basic behavior is - or why he would want to change it.

    So, yeah. I need to improve this tutorial, but I need to figure out the best way to do that while still being helpful for my original target audience.