Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Advice for Perl teaching

by davido (Cardinal)
on Jan 06, 2019 at 21:53 UTC ( #1228115=note: print w/replies, xml ) Need Help??

in reply to Advice for Perl teaching

Take them through Modern Perl. Or if that's too advanced, Learning Perl followed by Intermediate Perl.

I think that starting out with a lesson on use strict and use warnings is putting the cart before the horse. How would someone understand what strict 'vars', strict 'refs', and strict 'subs' without first learning about package versus lexical variables, about barewords, and about references? Don't teach people to include code they don't understand. Start with the basics and build up from there. If you want to discuss strict 'refs', you need to discuss symbolic and hard references. If you want to discuss strict 'vars', you need to discuss package global variables and lexical variables. Treat your students like grown ups and they'll rise to the occasion.


Replies are listed 'Best First'.
Re^2: Advice for Perl teaching
by Zenzizenzizenzic (Sexton) on Jan 07, 2019 at 22:52 UTC
    Will look into those books. Thank you!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2019-05-21 10:47 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (132 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!