in reply to Re: Re: split, Use of uninitialized value
in thread split, Use of uninitialized value
#!/usr/bin/perl -w #use strict; use Data::Dumper; use constant index1 => 18; use constant index2 => 19; use constant index3 => 20; my $rec = [ 618, 'xxxxxxxxxx', '3-Moderate', 'Normal', 'Closed', 'xxxxxxxxxx', 'xxxxxxxxxx', 'Approved', 'Approved', '05/12/03 10:00', '02/12/03 09:45', '3.00', 'Successful', '12/12/03 09:53', '05/12/03 13:00', '05/12/03 09:52', 'Midrange', 'Production', 'CSC.MIDRANGE.SERVER.SUPPORT', 1 ]; # @$rec = map { defined($_) ? $_ : '' } @$rec; # print Dumper($rec); if ( defined $rec->[index1] && $rec->[index1] ne '' && defined $rec->[index2] && $rec->[index2] eq '1' ) { if ($rec->[index3] == 1) { print "Crap\n" }; # +39 print "$rec->[index1] $rec->[index2] ", $rec->[index3], "\n"; # +40 print "OK\n"; } else { print "Not OK\n"; } # print Dumper($rec);
Use of uninitialized value at ./p09.pl line 39. Use of uninitialized value at ./p09.pl line 40. CSC.MIDRANGE.SERVER.SUPPORT 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: split, Use of uninitialized value
by Anonymous Monk on Jan 07, 2004 at 04:12 UTC | |
by Roger (Parson) on Jan 07, 2004 at 04:34 UTC | |
by Anonymous Monk on Jan 07, 2004 at 04:43 UTC | |
by ysth (Canon) on Jan 07, 2004 at 16:13 UTC |