Getting Function Name

Discussion in 'Perl Misc' started by George Kinley, May 6, 2004.

  1. Bosses,
    I have defined a Function which prints Error, it takes couple of Parameters,
    What I want is, IF I can some how send the name of the function as one of
    the parameter so that when the Error Function prints the message it also
    tells me from which function it has been called
    is it possible as my Script Executes
     
    George Kinley, May 6, 2004
    #1
    1. Advertising

  2. George Kinley

    Anno Siegel Guest

    George Kinley <> wrote in comp.lang.perl.misc:
    > Bosses,
    > I have defined a Function which prints Error, it takes couple of Parameters,
    > What I want is, IF I can some how send the name of the function as one of
    > the parameter so that when the Error Function prints the message it also
    > tells me from which function it has been called
    > is it possible as my Script Executes


    perldoc -f caller

    Anno
     
    Anno Siegel, May 6, 2004
    #2
    1. Advertising

  3. Thanks,

    I wonder Why we ask these stupid question , that we should find ourselves

    "Anno Siegel" <-berlin.de> wrote in message
    news:c7cv1u$3ut$-Berlin.DE...
    > George Kinley <> wrote in comp.lang.perl.misc:
    > > Bosses,
    > > I have defined a Function which prints Error, it takes couple of

    Parameters,
    > > What I want is, IF I can some how send the name of the function as one

    of
    > > the parameter so that when the Error Function prints the message it also
    > > tells me from which function it has been called
    > > is it possible as my Script Executes

    >
    > perldoc -f caller
    >
    > Anno
     
    George Kinley, May 6, 2004
    #3
    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. =?iso-8859-1?B?bW9vcJk=?=
    Replies:
    7
    Views:
    897
    Roedy Green
    Jan 2, 2006
  2. ding feng
    Replies:
    2
    Views:
    2,913
    ding feng
    Jun 25, 2003
  3. Bobby Chamness
    Replies:
    2
    Views:
    2,445
    Joe Smith
    Apr 22, 2007
  4. Jack-2
    Replies:
    3
    Views:
    334
    Jack-2
    Dec 24, 2003
  5. Java  script  Dude

    IE name="name" & form.name property bug

    Java script Dude, Jun 29, 2004, in forum: Javascript
    Replies:
    5
    Views:
    283
    Java script Dude
    Jun 30, 2004
Loading...

Share This Page