[ create a new paste ] login | about

Link: http://codepad.org/pEwQvELA    [ raw code | output | fork ]

Perl, pasted on Jan 7:
1
2
3
4
5
6
7
8
use warnings;

my @sites = (undef, "a", "b");
my $sitecount = 1;

while ($sites[$sitecount] ne undef) {
   $sitecount++;
}


Output:
1
2
3
4
Use of uninitialized value in string ne at t.pl line 6.
Use of uninitialized value in string ne at t.pl line 6.
Use of uninitialized value in string ne at t.pl line 6.
Use of uninitialized value in string ne at t.pl line 6.


Create a new paste based on this one


Comments: