Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Acme Bleach

by sameerperl
on Jul 25, 2008 at 09:56 UTC ( #700073=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Acme Bleach
in thread Acme Bleach

This is my normal code
#!/usr/bin/perl
#use Acme::Bleach;
use CGI;
$cgi=new CGI;
print $cgi->header;
print $cgi->start_html(-title=>'Login_page',-bgcolor=>'Lavender');
print $cgi->end_form();
In the above code if we uncomment the line 2 and then
compile it, it will not load on browser and give error premature script.
Please check this code and answer me what are the mistakes in that ...
Thanks


Comment on Re^4: Acme Bleach
Re^5: Acme Bleach
by shmem (Canon) on Jul 25, 2008 at 10:09 UTC

    Most probably the line

    #!/usr/bin/perl

    has been bleached away. Add it to the top of the script.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re^5: Acme Bleach
by DrHyde (Prior) on Jul 25, 2008 at 10:57 UTC
    The obvious mistake is that you're using CGI.pm to generate HTML.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://700073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-09-18 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (110 votes), past polls