CougarXR7 has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl script with the following.
sub unify_information { my ($sid, $rx) = @_; my %uei; # unified extended info my @upi; # unified player info # FIXME unify with {player playername name, other keys/columns} # first process all available player entries for (my $i = 0; exists $rx->{"player_$i"}; $i++) { # add player info to UPI and remove from hash my @player; push @player, $sid; push @player, delete $rx->{"player_$i"} || "Derp"; push @player, delete $rx->{"team_$i"}; push @player, int (delete $rx->{"frags_$i"} || 0); push @player, delete $rx->{"mesh_$i"}; push @player, delete $rx->{"skin_$i"}; push @player, delete $rx->{"face_$i"}; push @player, int (delete $rx->{"ping_$i"} || 0); <line 158 push @player, delete $rx->{"ngsecret_$i"}; push @upi, \@player; } # return remaining values, player array return ($rx, \@upi); } 1;
Argument "Bot" isn't numeric in int at /home/cougarxr7/Programs/MasterServer-Perl-2.4.3/lib/MasterServer/UDP/DatagramProcessor.pm line 158.
Is there any way to stop perl from logging/printing in terminal that argument? Is there a way to tell perl to ignore that error?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Argument spamming terminal
by hippo (Archbishop) on Aug 19, 2021 at 20:55 UTC | |
by CougarXR7 (Acolyte) on Aug 19, 2021 at 22:09 UTC | |
by CougarXR7 (Acolyte) on Aug 20, 2021 at 03:28 UTC | |
by hippo (Archbishop) on Aug 20, 2021 at 08:42 UTC | |
|
Re: Argument spamming terminal
by LanX (Saint) on Aug 19, 2021 at 23:22 UTC | |
|
Re: Argument spamming terminal
by Marshall (Canon) on Aug 20, 2021 at 20:28 UTC |