Raja Jee <> wrote:
: htt
p://www.pickatutorial.com/tutorials/perl_1.htm
Thanks Raja! I will definitely steer clear of these
tutorials.
Beginners, please do not use these tutorials as examples of
good
perl programming style. They are /not/ in conformance with
modern
perl programming practices.
Why?
Here's some code from the htmlite tutorial.
Surprisingly, this
section is on how to write sub routines. I find no mention
of
scoping in this tutorial.
#!/usr/bin/perl
&mime;
$which_browser = &find_browser;
print "You are browsing this page using
$which_browser";
sub mime{
print "Content-type: text/htmlnn";
}
sub find_browser {
$browser = $ENV{'HTTP_USER_AGENT'};
return $browser;
}
To the new initiate, nothing seems wrong, but to an
expert,
the alarms form this code may be blaring too loudly to
permit
rational thought.
The tutorial from tizag has this sentence in the
introduction.
"First things first, you must have PERL 5.005
installed on your
web hosting machine."
5.005! Holy crap. I think it's time to update this one.
Instead of recommending perl tutorials, why not ask if a
particular tutorial is recommended. Then a more experienced
programmer can check it out before another potential
programmer is
lost to the Dark Side.
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
Free Market Advocate
Web Programmer
254 968-8328
http://www.clarks
onenergyhomes.com/
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|