[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] match "/" at end of string ???



Hi dave,

Instead of

        if ($slashdirpath =~ /$\//) {

, please try

        if ($slashdirpath =~ m|$\/|) {

This seems to work properly on 68k verison of MacPerl5.0.7r1m.

Also you can replace '|' with another "\W"-character than '/';
using '/', I also met "slash path does NOT have a slash after it".



-------------------------------------
Mamoru Yamanishi <yama@radical.biotech.okayama-u.ac.jp>
+81-86-251-8196(voice), +81-86-253-7399(GIII fax)
Dept. Biotechnology, Okayama Univ.