use question

Discussion in 'Perl Misc' started by kj, Mar 2, 2004.

  1. kj

    kj Guest

    If I want all the symbols exported by default by a module, plus a
    few more, I find that the following works:

    use Some_Module;
    use Some_Module qw(some extra symbols);

    Is there a way to achieve the same results in one line?

    Thanks!

    kj
     
    kj, Mar 2, 2004
    #1
    1. Advertising

  2. kj

    Peter Scott Guest

    In article <c22oe5$osb$>,
    kj <> writes:
    >
    >
    >
    >If I want all the symbols exported by default by a module, plus a
    >few more, I find that the following works:
    >
    >use Some_Module;
    >use Some_Module qw(some extra symbols);
    >
    >Is there a way to achieve the same results in one line?


    perldoc Exporter

    use Some_Module qw:)DEFAULT some extra symbols);

    --
    Peter Scott
    http://www.perldebugged.com/
    *** NEW *** http://www.perlmedic.com/
     
    Peter Scott, Mar 2, 2004
    #2
    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. Replies:
    6
    Views:
    7,218
  2. M K
    Replies:
    11
    Views:
    7,106
    woods_jemmy
    Apr 9, 2008
  3. Simon
    Replies:
    1
    Views:
    461
    Henri
    Nov 9, 2004
  4. Ark Khasin

    A basic question question about volatile use

    Ark Khasin, Jul 31, 2008, in forum: C Programming
    Replies:
    12
    Views:
    367
    Ark Khasin
    Jul 31, 2008
  5. James
    Replies:
    12
    Views:
    837
    James
    Dec 20, 2004
Loading...

Share This Page