Ankam, Ramesh Babu wrote:
Hi,
Can any one please tell me what this pattern means " s|.*/|| ".
Is it that '|' represents '/'. Please reply me soon. Thanks in advance
--- Ramesh
Hello Ramesh,
In your example "|" is used as the delimiter instead of the
general "/" delimiter since the pattern to match contains a "/".
For example
perl -le '$string="Hello /World"; $string =~ s|.*/|| ;print $string;'
will print World as output.
-Ranish George
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>