hi it is ananymous subroutine

Here $_ means value of the argument that passed to the sunroutine

And 
$$_ you can understand like below


$name="ajay";
$class="name"

$$class== ajay

Thanks
Ajay

-----Original Message-----
From: Shawn H Corey [mailto:shawnhco...@gmail.com] 
Sent: Thursday, September 10, 2009 5:39 PM
To: Jyoti
Cc: beginners@perl.org
Subject: Re: Help Please

Jyoti wrote:
> Can someone explain me what these symbols mean in regular expression:
> 
> my $trim = sub {local($_)=shift;
>      $$_ =~ s/^\s*//;
>      $$_ =~ s/\s*$//;};
> 
> Thanks.
> 

Yes, it's all explained in:
http://perldoc.perl.org/5.8.8/perlretut.html
http://perldoc.perl.org/5.8.8/perlre.html


--
Just my 0.00000002 million dollars worth,
   Shawn

Programming is as much about organization and communication as it is about
coding.

I like Perl; it's the only language where you can bless your thingy.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional
commands, e-mail: beginners-h...@perl.org http://learn.perl.org/




______________________________________________________________________
This communication contains information which is confidential. It is for the
exclusive use of the intended recipient(s). If you are not the intended
recipient(s) please note any distribution, copying or use of this
communication or the information in it is strictly prohibited. If you have
received this communication in error please notify us by e-mail or
by telephone (as above) and then delete the e-mail and all attachments and
any copies thereof.
______________________________________________________________________

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to