various people have contributed to this interesting thread... At 6:14 PM -0700 7/9/01, John W Baxter wrote: [snip] >$c =~ m/:([^:]*)$/ ? print "$1\n" : print "$c\n"; [snip] >Perl will start at the left and advance rightward to the first : then find >a string of non-colons, note that the end of the string isn't there, then >give up on that colon and walk along to the next one, and non-colons again, >noting that it isn't yet at end of string and so on until it encounters the >"right" colon.) Wait -- doesn't the $ 'anchor' the regex to the end of the string? If so, that's where the matching attempts *start*, yes? 1; -- - Bruce __bruce_van_allen__santa_cruz_ca__
- [MacPerl] how to get just the file name from full path Katherine Richmond
- Re: [MacPerl] how to get just the file name from f... Morbus Iff
- Re: [MacPerl] how to get just the file name from f... Todd Richmond
- Re: [MacPerl] how to get just the file name from f... Scott R. Godin
- Re: [MacPerl] how to get just the file name from f... Morbus Iff
- Re: [MacPerl] how to get just the file name fr... Scott R. Godin
- Re: [MacPerl] how to get just the file name from f... Katherine Richmond
- Re: [MacPerl] how to get just the file name from f... John W Baxter
- Re: [MacPerl] how to get just the file name fr... Ronald J Kimball
- Re: [MacPerl] how to get just the file name from f... John W Baxter
- Re: [MacPerl] how to get just the file name from f... Bruce Van Allen
- Re: [MacPerl] how to get just the file name from f... John W Baxter
- Re: [MacPerl] how to get just the file name fr... Bruce Van Allen