cdarke has asked for the wisdom of the Perl Monks concerning the following question:

In Mastering Perl, brian d foy uses the term 'Old School Perl' (in the context of using dbmopen). Is this the preferred phrase?
Would '20th Century Perl' vs '21st Century Perl' be more apt?
Do you have a better one?

How would monks define Old School and New School? Here is the start of my list:
Old School New School pre-5.6 5.8 or later use CGI; catalyst; -w use warnings; fingers crossed use strict; use vars; my, our Perl as shell Perl as Perl Perl as C Perl as Perl @ISA use base (or parent) bless {} use Moose;
and so on...

update:I notice that the Moose::Manual uses the term Old School as well.

Replies are listed 'Best First'.
Re: Old school - New school?
by jethro (Monsignor) on Oct 20, 2009 at 08:58 UTC
    F as filehandle $f as filehandle one argument open three argument open print "..." print Dumper(...) - create tests

    You could also just list all those modules in heavy use now that were not available in the olde tymes (like Log::Log4perl, Storable, WWW::Mechanize, Devel::NYTProf), but that would be a rather trivial answer to your question

      my $f as filehandle?

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        "use strict" was already mentioned by cdarke
      jethro,
      Can you give me an example of a 1 argument open that isn't new school? I think you meant 2 arg open but perhaps not. I am not overly familiar with 1 arg open but certainly 2 arg is old school as well. I initially thought 1 arg open would be used to open a scalar reference for reading/writing but perhaps you could show other forms so I know what to look out for.

      Cheers - L~R

        Actually the '1' was a mistake and it was just coincidence that there really is a 1 arg open.
Re: Old school - New school?
by moritz (Cardinal) on Oct 20, 2009 at 08:49 UTC
Re: Old school - New school?
by ikegami (Patriarch) on Oct 21, 2009 at 01:43 UTC

    Both use warnings; and -w have merits.

    "5.8 or later" should be "5.8.8 or later", in my opinion.

    I'd add DBI ⇒ DBI and ORMs. (Some things are complemented rather than replaced.)