Prev: FAQ 9.10 How do I decode or create those %-encodings on the web?
Next: FAQ 4.14 How can I compare two dates and find the difference?
From: John on 22 Apr 2010 14:11 I got it figured. My html code was in error and browser threw away output.
From: Uri Guttman on 22 Apr 2010 14:22 >>>>> "J" == John <John.Smith(a)invalid.com> writes: J> I got it figured. My html code was in error and browser threw away output. which is just what i guessed. did you learn the lesson i sent? uri -- Uri Guttman ------ uri(a)stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
From: J�rgen Exner on 22 Apr 2010 14:36 John <John.Smith(a)invalid.com> wrote: >J�rgen Exner <jurgenex(a)hotmail.com> wrote: >>John <John.Smith(a)invalid.com> wrote: [...] >>>$ii=1; >> >>If you want the line number then you can use the predefined variable $. > >Please explain? I am giving variable $ii the value on one (number 1). Yes. And in each iteration you are reading one line and incrementing the number by one. In other words: $ii is a counter for the line number. $. does that for you automatically already. >>>while ($myline=<MYFILE>) [...] >>> $ii=$ii+1; jue
From: J�rgen Exner on 22 Apr 2010 14:38 John <John.Smith(a)invalid.com> wrote: >I got it figured. My html code was in error and browser threw away output. And how would that affect the output of your Perl script? jue
From: Uri Guttman on 22 Apr 2010 14:46
>>>>> "JE" == J�rgen Exner <jurgenex(a)hotmail.com> writes: JE> John <John.Smith(a)invalid.com> wrote: >> I got it figured. My html code was in error and browser threw away output. JE> And how would that affect the output of your Perl script? as i said (and guessed correctly) he was only looking at the browser and not the page source or running the script directly. somehow his wacky html (not going there) obscured his counter. uri -- Uri Guttman ------ uri(a)stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- |