One more that the other poster didn't mention: perldoc perlretut
This goes over Regular Expressions in a slightly higher level than just Perl's thoughts on the subject. http://danconia.org ------------------------------------------------ On Tue, 17 Dec 2002 05:41:57 -0800 (PST), Will <[EMAIL PROTECTED]> wrote: > Greets Folks, > > 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+)$/)) > > Or, like: > > sub trim > { > my $str = shift; > > return "" if ! defined $str; > $str =~ s/^\s+//; > $str =~ s/\s+//; > return($str); > } > > I dont understand how to read whats happening in those > sections. I think it's called parsing, but I need > some sort of confirmation and direction there... I > mean, its not just a question of how to do it, but > also why and when to parse input... > > Anyway, is parsing what I need to learn to understand > code like the examples above? And, if it is, then > where could I begin to learn how to parse effectively > enough to get a real grip on it? > > Thanks, > > Will > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]