variable function name

Discussion in 'Perl' started by Thomas Herger, Aug 16, 2004.

  1. Hi @ all

    I want to write the start of an function like this: $a . test($b) Is this
    possible?
    Is it possible to load diffrent functions with the same name from diffrent
    modules? How do I write this?

    THX and greets from Switzerland
     
    Thomas Herger, Aug 16, 2004
    #1
    1. Advertisements

  2. Thomas Herger wrote:
    > I want to write the start of an function like this: $a . test($b)
    > Is this possible?


    What happened when you tried it?

    > Is it possible to load diffrent functions with the same name from
    > diffrent modules?


    Yes.

    > How do I write this?


    Use the fully qualified names.

    perldoc perlmod

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
     
    Gunnar Hjalmarsson, Aug 16, 2004
    #2
    1. Advertisements

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. =?iso-8859-1?B?bW9vcJk=?=
    Replies:
    7
    Views:
    1,140
    Roedy Green
    Jan 2, 2006
  2. ding feng
    Replies:
    2
    Views:
    3,273
    ding feng
    Jun 25, 2003
  3. chunmok
    Replies:
    2
    Views:
    643
    llewelly
    Sep 2, 2003
  4. Bobby Chamness
    Replies:
    2
    Views:
    2,627
    Joe Smith
    Apr 22, 2007
  5. mfglinux
    Replies:
    11
    Views:
    981
    Roberto Bonvallet
    Sep 12, 2007
  6. AikidoGuy
    Replies:
    11
    Views:
    800
    Seebs
    Nov 21, 2011
  7. Jack-2
    Replies:
    3
    Views:
    607
    Jack-2
    Dec 24, 2003
  8. David Filmer
    Replies:
    19
    Views:
    528
    Kevin Collins
    May 21, 2004
Loading...