I posted a question a while back "To register or not to register, that is the question." regarding my user registration. I work most of the errors out of it and there were alot of them but i still have a few that have me stumped.....
When i run it I get these messages....
C:\Perl\bin>perl reg.cgi -c
Unrecognized escape \s passed through at reg.cgi line 102.
syntax error at reg.cgi line 162, near "1;"
Missing right curly or square bracket at reg.cgi line 168, at end of line
Execution of reg.cgi aborted due to compilation errors.
Line 102
sub good{#99
my @info = @_;#100
my $title = "Registration successful!";#101
my $body = qq(<body>#102
Line numbers but in for you.
End Of Program.
sub password{
$s = @_;
srand($s ^ time);
@c=split(/ */, "bcdfghjklmnpqrstvwxyz");
@v=split(/ */, "aeiou");
for($i = 1; $i <= 4; $i += 1;);
{
return($c[int(rand(20))], $v[int(rand(5))]);
}
}
edited: Thu Jan 2 05:08:43 2003
by jeffa - title change (was: Help Please....), formatting
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.