cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:
And, here's the weird bit. I was just running an adapted sample from the docs that begins with:Cannot encode 'hashref' element as 'hash'. Will be encoded as 'map' in +stead
When I change this to:#!perl -w
the warning disappears.#!/usr/bin/perl use strict; use warnings;
Is there a difference between the -w switch and the "use warnings" pragma?
ps - I'm running these as "perl script.pl" rather than "./script.pl"