SriniK has asked for the wisdom of the Perl Monks concerning the following question:
its all working fine. But if i remove "print "Content-type: text/html\n\n";" the same program through error message!#/usr/bin/perl print "Content-type: text/html\n\n"; $string="I have 5 + 6 Rupees and 6/3 paise"; print "$string\n"; $string=~ s{(\d+\s*[+*/-]\s*\d+)}{$1}eegi; print "$string\n"; $string="India Chennai New yark"; print "$string\n"; $string=~ s{(\b\w+\b)}{su($1)}eg; print "$string\n"; sub su{ $match=shift; $match=~s{(\w+)}{uc($1)}gei; return $match; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Content-type: text/html
by marto (Cardinal) on Mar 14, 2013 at 10:41 UTC | |
|
Re: Content-type: text/html
by vinoth.ree (Monsignor) on Mar 14, 2013 at 10:43 UTC | |
by marto (Cardinal) on Mar 14, 2013 at 10:46 UTC |