>
> 2 Questions here...
>
> 1.) I am self taught, so I dont know all the formal
> details of Perl coding, but every now and then I run
> across code that reads like alphabet soup... for
> instance, lines like (taken at random):
>
> The conditional here...
>
> if ($cgi->param('forum') =~ /^(\d+)$/))
Start reading :-)
perldoc CGI;
or if you like it on the web:
http://stein.cshl.org/WWW/CGI/
also read up on regex: perldoc perlre
>
> Or, like:
>
> sub trim
> {
> my $str = shift;
>
> return "" if ! defined $str;
> $str =~ s/^\s+//;
> $str =~ s/\s+//;
> return($str);
> }
again regex and 'perldoc perlsub'
after reading through these, i think you will understand and it is far
better this way then somebody just telling you what the code does
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]