in reply to Re^8: Howto "use" backward compability packages of new "feature"s
in thread Howto "use" backward compability packages of new "feature"s

You are saying there's some undocumented usage for pragmas. That's not true. use strict; matches the use Module; pattern, which is documented to be the same as BEGIN { require strict; strict->import(); }.

Anyway, pragmas refers to modules that behave in a certain fashion. There's nothing special about them as far as Perl is concerned.

pragmas are not even mentioned in require, it only talks about "library files"

First you complain that "Modul"e is too specific, now you complained that the more generic term doesn't apply.

Replies are listed 'Best First'.
Re^10: Howto "use" backward compability packages of new "feature"s
by LanX (Saint) on Aug 25, 2010 at 21:04 UTC
    pragmas are files???

    and if library files are the "more generic term", then my point should be clear!

    thank you! :)

    Cheers Rolf

      pragmas are files???

      Where were you planning on storing the code for stricter?

      then my point should be clear!

      I don't agree that

      use Module VERSION LIST use Module VERSION use Module LIST use Module use VERSION BEGIN { require Module; Module->import( LIST ); }
      is less clear than
      use LibraryFile VERSION LIST use LibraryFile VERSION use LibraryFile LIST use LibraryFile use VERSION BEGIN { require LibaryFile; Module->import( LIST ); }

      Especially since use doesn't take a file name.