it somehow, why to make it mandatory in the interface.
-Sharad
> -Original Message-
> From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 8:53 PM
> To: Gupta, Sharad
> Cc: [EMAIL PROTECTED]
> Subject: Re: FQN from references
&
Gupta, Sharad wrote:
H!!. I am spinning ;)
I'll look at B.
The problem was i wanted to know the name of the coderef to generate an error message.
Ahh... again depending on your use you may want to have a look at:
perldoc -f caller
If you haven't, it is very affective for creating traces
sday, October 22, 2003 6:23 PM
To: Gupta, Sharad
Cc: [EMAIL PROTECTED]
Subject: Re: FQN from references
Gupta, Sharad wrote:
Hi All,
How do i know the full name of a variable from its reference??.
Say i have a routine defined like this:
package Bar;
sub foo {};
And then i say:
my $x = \&foo;
ns d'Anconia
> Cc: Gupta, Sharad; [EMAIL PROTECTED]
> Subject: Re: FQN from references
>
>
> On Wed, Oct 22, 2003 at 08:22:47PM -0500, Wiggins d'Anconia wrote:
> > Gupta, Sharad wrote:
> >> Now from this coderef ($x) i want to know its fully qualified name
&
6:23 PM
> To: Gupta, Sharad
> Cc: [EMAIL PROTECTED]
> Subject: Re: FQN from references
>
>
> Gupta, Sharad wrote:
> > Hi All,
> >
> > How do i know the full name of a variable from its reference??.
> >
> > Say i have a routine defined like this:
>
On Wed, Oct 22, 2003 at 08:22:47PM -0500, Wiggins d'Anconia wrote:
> Gupta, Sharad wrote:
>> Now from this coderef ($x) i want to know its fully qualified name
>> which would be somthing like Bar::Foo. Is there a way to do that.??.
>
> Where do you want to know it? Presumably if you have set it th
Gupta, Sharad wrote:
Hi All,
How do i know the full name of a variable from its reference??.
Say i have a routine defined like this:
package Bar;
sub foo {};
And then i say:
my $x = \&foo;
Now from this coderef ($x) i want to know its fully qualified name which would be somthing like Bar::Foo.
Hi All,
How do i know the full name of a variable from its reference??.
Say i have a routine defined like this:
package Bar;
sub foo {};
And then i say:
my $x = \&foo;
Now from this coderef ($x) i want to know its fully qualified name which would be
somthing like Bar::Foo.
Is there a way to