seems, it matches any path with 2 sub dirs, ending with xyz and populates $1 with the second dir
for instance if $cur_dir = "/cgi-bin/dev/xyz" then $1 is set to "dev" -----Original Message----- From: Hari Krishnaan [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 9:27 AM To: [EMAIL PROTECTED] Subject: A Doubt on Regular Expression Hi everyone, Can anyone tell me what the following piece of code does : my $cur_dir = cwd (); if ($cur_dir =~ m, ^/.*/ (.*)/xyz,) { } Thanks, hari --------------------------------- Do you Yahoo!? Free online calendar with sync to Outlook(TM). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]