develooper Front page | perl.dbi.users | Postings from July 2006

Perl script

Thread Next
From:
Amar P. Singh
Date:
July 24, 2006 22:03
Subject:
Perl script
Message ID:
3811300EDEA1614ABAD9585044812B84C22CB8@delmail1.sapient.com
Hi All,

This is my first email to the group and I hope  that I landed in the
correct place.

 

Ok now coming to the problem. Can someone explain to me that what this
script is doing. I want to know the meaning of all the lines in the
script.

 

                        $val = defined $val ? $val : "null";

                        $val =~ s/\'/$& x 2/eg; # double pad single
quote character '

                        

Please help me out understand the meaning of the lines above.

 

With Regards,

 

Amar P Singh

desk: +91 124 4167037

mobile: +91 (0) 9810788298 
e-mail: asingh4@sapient.com

 


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About