in reply to Re: No output to screen or output file
in thread No output to screen or output file

I noted that I did not include the entirety of my code. I changed my $filter variable to $filter_data. Also I took off the single quotations from my references to the arrays. This has not solved the problem.

  if($hash{$filter[$c]->[4]} eq $filter_data)

I believe my problem lays with comparing a reference to an array with a variable (containing a string). Any insight on this would be helpful. Thanks!

Also, whenI remove the quotes and attempt to run the program the following error appears {Also, 'use strict' is included in my code}

Error: Use of uninitialized value in string eq at trial1.pl line 142, <IN> line 1767.

Replies are listed 'Best First'.
Re^3: No output to screen or output file
by blue_cowdawg (Monsignor) on Jul 24, 2012 at 18:36 UTC
        Error: Use of uninitialized value in string eq at trial1.pl line 142, <IN> line 1767.

    here is where I'd put in some print statements to see what values are present in the variables being cited by the error code. You've told me that you didn't include all your code, but there are some things you haven't included that are probably germain to the problem at hand...


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

      Ok, will try that out. Thanks!

Re^3: No output to screen or output file
by tobyink (Canon) on Jul 25, 2012 at 00:07 UTC
    use strict; use warnings; no warnings qw(uninitialized);
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'