in reply to "Use strict" and "Use warnings" not working
So you either have to use perl's command line switch to run code from the command line like so:
perl -e 'your code goes here' perl -E 'your code goes here' # This enables Perl 5.10 features
Or you have to create a Perl script as toolic and Davido have already mentioned. For example:
#!/usr/bin/perl use feature ":5.10"; # Use all new features in Perl 5.10 use strict; use warnings; # Your code goes here here
Elda Taluta; Sarks Sark; Ark Arks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "Use strict" and "Use warnings" not working
by choroba (Cardinal) on Jun 03, 2010 at 20:36 UTC | |
by Argel (Prior) on Jun 03, 2010 at 22:05 UTC |