in reply to Re: mkdir mode troubles
in thread mkdir mode troubles
which works but seems ugly. Is there a better way? i.e. is there a way to test the end of a string for all common dividers?open PUB_CAT, 'pub_cat.txt' or die "Can't open file: $!\n"; foreach (<PUB_CAT>) { local $/ = "\n"; chomp; local $/ = "\r"; chomp; print "(<br> $_)"; mkdir "../Online_Library/$_", 0777; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: mkdir mode troubles
by shotgunefx (Parson) on May 15, 2001 at 04:54 UTC | |
by newatperl (Acolyte) on May 15, 2001 at 05:42 UTC | |
by shotgunefx (Parson) on May 15, 2001 at 12:38 UTC |