in reply to Problem with duplicate Entry in One frame

Sorry, I missed the my $operacion; declaration. Still I would advise you to use -text instead of -textvariable since you are not capturing the references to the variables anyway.

Update: Another thing I would do is to make sure each line has the right format before processing it:

foreach my $stat1(@stat1) { chomp ($stat1); my $operacion; my $stado1; ($operacion,$stado1)=split(/\|/,$stat1); next unless defined($stado1); ... }
The next statement will skip blank lines and lines that do not contain a |-delimiter.

Replies are listed 'Best First'.
Re^2: Problem with duplicate Entry in One frame
by padawan_linuxero (Scribe) on May 19, 2008 at 22:16 UTC
    Hi
    thanks, but my problem continues you see this is what is happenning on the screen :
    STATUS : BANK1 ACTIVE BANK2 ACTIVE BANK3 ACTIVE STATUS : BANK1 ACTI +VE....
    to check on the file I use repeat and I need to see the file every 10 seconds so every ten seconds it repeat it self the same line over end over again... is there a way to clean the frame and let it draw it again or something like that>??