in reply to No output to screen or output file
I'm very confused about your coding.
and then later in your code:my $filter = "filter"; # I'm a scalar here..
besides which you are putting the above in a pair of single quotes$hash{$filter[$c]->[4]} # or am I an array?
not cool.'$hash{$filter[$c]->[4]}' # that will literally be "$hash{$filter[$c +]->[4]}"
Start your script off with use strict; and you'll see helpful information.
$ ./booboo.pl Global symbol "$num_elements" requires explicit package name at ./boob +oo.pl line 14. Global symbol "%hash" requires explicit package name at ./booboo.pl li +ne 18. Global symbol "@filter" requires explicit package name at ./booboo.pl +line 18. Global symbol "%hash" requires explicit package name at ./booboo.pl li +ne 25. Global symbol "@filter" requires explicit package name at ./booboo.pl +line 25. Global symbol "@filter" requires explicit package name at ./booboo.pl +line 25. syntax error at ./booboo.pl line 26, near "+]" (Might be a runaway multi-line "" string starting on line 25) Global symbol "$line" requires explicit package name at ./booboo.pl li +ne 28. Global symbol "%hash" requires explicit package name at ./booboo.pl li +ne 34. Global symbol "@filter" requires explicit package name at ./booboo.pl +line 34. Global symbol "@filter" requires explicit package name at ./booboo.pl +line 34. Global symbol "@filter" requires explicit package name at ./booboo.pl +line 34. Global symbol "$line" requires explicit package name at ./booboo.pl li +ne 37. Missing right curly or square bracket at ./booboo.pl line 49, at end o +f line ./booboo.pl has too many errors.
Above is the result of that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: No output to screen or output file
by dkhalfe (Acolyte) on Jul 24, 2012 at 18:10 UTC | |
by blue_cowdawg (Monsignor) on Jul 24, 2012 at 18:36 UTC | |
by dkhalfe (Acolyte) on Jul 24, 2012 at 20:12 UTC | |
by tobyink (Canon) on Jul 25, 2012 at 00:07 UTC |