Ryan Dillinger wrote: > Hello, > I have a script here, I have been going over and over. > Every time I run it I get several errors, and I have tried to fix them > to no avail. > Can someone tell me what line I missed, please? > Thanks for your help! > > #!usr/bin/perl > use warnings; > use strict; > > %names = (); > @raw = (); > $fn = ""; > $in = ''; > @keys = (); > @n = (); > $search = ''; >
If you `use strict;` (and you always should), all variables must be declared with 'my' or 'our' or be fully qualified: my %names = (); my @raw = (); my $fn = ""; my $in = ''; my @keys = (); my @n = (); my $search = ''; See `perldoc strict` for details. A fully qualified variable looks like: @::names @main::names or $Data::Dumper::Sortkeys = 1; $Data::Dumper::Indent = 1; $Data::Dumper::Maxdepth = 0; -- __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>