Bal -- > I checked my code and couldn't find anything wrong in it. I > don't know why > the browser thinks it's and xml where as I am printing HTML > all across the > script. I am attaching the script herewith as well. If you or > anyone on this > list finds the bug, pls. let me know.
My initial instict is that you've got an extra or missing "}" somewhere. First off, fix your indenting -- it's unworkable. If you make your intending consistant that will probably help you identify your problem right there. E.g.: sub some_mode { my $self = shift; if ($self->is_something()) { return $self->do_something_else(); } my $count = 0; while ($self->stuff_is_true()) { $count++; if ($count%10) { $self->count_mod_ten(); } } return "Weouttahere..."; } ...Note that you can visually trace any closing brace to its source by going straight up. No guesswork required. Basic stuff aside, I see one scary "exit(0)" in there. That's a big no-no. In this case it will never execute (you return() first), but in general you should either exit (or die), or return output -- not both. -Jesse- --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.vm.com/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]