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.
In reply to Re: No output to screen or output file
by blue_cowdawg
in thread No output to screen or output file
by dkhalfe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |