#perl - Sun 18 Mar 2007 between 14:39 and 14:45



buubotRandal: 5
rindolfSkeets: hi.
Jo-WI didnt had the error before, i changed something, now I have it about 14 times
Skeetsrindolf: within the sub routines i put my $code = <<"END"; and then the Code...... and then END
Randaleval: use strict; use warnings; if ($_) { my $x = 3; } else { my $x = 5; }
buubotRandal: 3
Randaleval: use strict; use warnings; if (not $_) { my $x = 3; } else { my $x = 5; }
buubotRandal: 5
Randalhmm. not because of constant optimization
Skeetsrindolf: now this is what happens tot he page: http://skeets.kicks-ass.net/cgi-bin/new.cgi
Randalboth "cgi-bin" and ".cgi"
rindolfSkeets: can you nopaste your code? And syntax highlight it.
Jo-Wthis bug is driving me insane
Randalbelt *and* suspenders
actionRandal rolls eyes
Randalrolls eyes
Skeetsrindolf: http://rafb.net/p/M5E32R16.html
Caelumeval: $^W=1; my $foo = "bar"; my $foo = "baz";
buubotCaelum: baz
Randalodd. shouldn't that be an error?
waring?
warning too? :)
wolverianyes, it should.
Randaloh good, the perlcast news is out!
"your roving perl reporter"
rindolfSkeets: instead of the print starting on line 32 you should use a here-doc.
Skeetsrindolf: what's a here-doc
Caelumeval: use warnings; my $foo = "bar"; my $foo = "baz";
buubotCaelum: baz "my" variable $foo masks earlier declaration in same scope at eval line 1.
rindolfSkeets: in sub page_header - you declare a variable but then use it.
Caelumahh, changing $^W happens only at runtime...
rindolfSkeets: a here document or here-doc for short is that <<"EOF"..EOF thing
Randaleval: BEGIN { $^W = 1 } my $x; my $x
rindolfSkeets: in sub page_header - you declare a variable but you don't use it for anything.
buubotRandal: "my" variable $x masks earlier declaration in same scope at eval line 2.
Randalaha!
aka "use warnings" :)
Skeetsrindolf: in page_header i declare a variable and use it, yea, is that wrong?
rindolfSkeets: you're not using it.
Skeets: you just declare it.
my $code = <<"END";

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive