>From the fingers of Ben Laurie flowed the following:
>
>Rodent of Unusual Size wrote:
>> 
>> From the fingers of Dean Gaudet flowed the following:
>> >
>> >But $0 == "nph-foobar.cgi" is a theoretical possibility. 
>> 
>>     Yes indeed - which is successfully matches by m:^(.*/)*nph-[^/]*$:
>>     as expected.
>
>I feel impelled to point out that ^(.*/)* is the same as /. Isn't it? As in
>m:/nph-[^/]*$ (given that URLs always start with a /).

    No, it's not the same.  "^(.*/)*" means "start of line followed by
    ZERO or more occurrences of (anything ending in a slash)."  And
    while URLs (absolute ones, anyway) begin with a slash, $0 in a Perl
    programme is a filename, not a URL.

    [I've been trying to send this for about ten hours, but my SP is
    busy biting the galactic muffin.  Time for a new one.. }-( ]

    #ken    :-)}

Reply via email to