use statements in packages

Discussion in 'Perl Misc' started by Robert, Jan 5, 2012.

  1. Robert

    Robert Guest

    So I was reading up on Dist::Zilla and I see a code snippet like:

    use strict;
    use warnings;
    package Your::Library;

    1;

    I was always under the impression the "package" statement was the
    first thing. Is there some advantage to having the use statements
    above the package declaration?

    Bob
    Robert, Jan 5, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Neil Zanella
    Replies:
    8
    Views:
    1,170
    mfmehdi
    Oct 20, 2006
  2. Paul  Smith
    Replies:
    0
    Views:
    723
    Paul Smith
    Nov 18, 2003
  3. Harry George
    Replies:
    6
    Views:
    363
    Bart Nessux
    Feb 23, 2004
  4. Vince
    Replies:
    12
    Views:
    739
    Martin Gregorie
    Jan 21, 2008
  5. John Crichton
    Replies:
    6
    Views:
    254
    John Crichton
    Jul 12, 2010
Loading...

Share This Page