This is an extract from my code:
my $args1;
my $args2;
my $args3;
:
# the below done in a loop with many lines:
($cpu,$pid,$user,$ni,$time,$args1,$args2,$args3) = split(' ',$line);
$ps_out .= qq['"$args1 $args2 $args3"'];
On execution, I am getting this warning:
Use of uninitialized value in concatenation (.)
The args2 and args3 may often be with no value (spaces).
How do I eliminate the warning?
Thank you
my $args1;
my $args2;
my $args3;
:
# the below done in a loop with many lines:
($cpu,$pid,$user,$ni,$time,$args1,$args2,$args3) = split(' ',$line);
$ps_out .= qq['"$args1 $args2 $args3"'];
On execution, I am getting this warning:
Use of uninitialized value in concatenation (.)
The args2 and args3 may often be with no value (spaces).
How do I eliminate the warning?
Thank you