Kelly Grant has asked for the wisdom of the Perl Monks concerning the following question:
I appreciate any help anyone can provide
Kelly
Here is a snippet from the file:
use strict; use warnings; use bytes; #... my $showPUV = 0; my $showPUVdesc = ""; # Call a sub, which calls a sub, etc... # The Main doesn't end until all files have been processed sub FilterMessage { $Line = $_[0]; our $showPUV; our $PUV; our $Report; our $EVENTNAME; our $EVENTTEXT; Clear_Arguments(); Parse_Messages(); ## IF we care about the PUV and it is NOT our PUV, don't show it # if (( defined $main::showPUV ) and ( defined $main::PUV )) { if ( $showPUV != 0 ) { ## This is undefined sometimes!! if ( $showPUV != $PUV ) { return $FALSE; } } # } ## else this test is OK, the line can be shown at this point if ( $Report eq "events" ) { if (( bytes::length $EVENTNAME > 0 ) or ( bytes::length $EVENTTEXT > 0 )) { return $TRUE; } } elsif ( $Report eq "comms" ) { ## need to do some more work here return $TRUE; } else { return $TRUE; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with global variables going out of scope
by friedo (Prior) on Mar 28, 2006 at 18:19 UTC | |
|
Re: problem with global variables going out of scope
by Roy Johnson (Monsignor) on Mar 28, 2006 at 18:19 UTC | |
|
Re: problem with global variables going out of scope
by ikegami (Patriarch) on Mar 28, 2006 at 18:20 UTC | |
by acid06 (Friar) on Mar 28, 2006 at 21:12 UTC | |
by ikegami (Patriarch) on Mar 28, 2006 at 22:07 UTC | |
by acid06 (Friar) on Mar 29, 2006 at 00:15 UTC | |
|
Re: problem with global variables going out of scope
by eff_i_g (Curate) on Mar 28, 2006 at 18:20 UTC | |
|
Re: problem with global variables going out of scope
by Kelly Grant (Acolyte) on Mar 28, 2006 at 22:00 UTC |