Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm reading about tie in the camel book and came across this.

sub TIESCALAR { bless \my $self, shift }

Why is my escaped?

Re: \my

Quoth myphplists@yahoo.com:
Quoted text here. Click to load it

\ is the 'take a reference' operator (which I assume you understand
already, if you're reading about tie). This sub is equivalent to

    sub TIESCALAR {
        my $self;
        bless $self, shift;


Site Timeline