On Wed, 2006-31-05 at 20:03 +0200, Danny wrote: > > Get in the habit of using strict and warnings -- 'use warnings' is > > subtly different from 'perl -w' and you should start good habits > > early. Upgrade if you are using an ancient version of Perl that does > > not come with warnings. > > > So would it be a conflict to use both "-w" and "strict"?
There is no conflict between the run flag, -w, and `use strict;` But you should always `use strict;` and `use warnings;` To make things easier for you considered creating a file with this: #!/usr/bin/perl use strict; use warnings; use Data::Dumper; $Data::Dumper::Sortkeys = 1; $Data::Dumper::Indent = 1; $Data::Dumper::Maxdepth = 0; __END__ Then, whenever you want to create a new script, copy it to the new file and then edit that. Related perldoc's: perldoc perlrun perldoc perllexwarn perldoc strict perldoc warnings perldoc Data::Dumper -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>