in reply to Trouble with path syntax
as an example, I set $file = "1/2/3/4.txt";1: my($thebase) = ($file =~ /(.*)\/[^\/]+/); 2: my($html,$html2); 3: if (!-e $file){ 4: $thebase =~ s/\/[^\/]+$/\/default/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Trouble with path syntax
by diamich (Initiate) on Aug 29, 2003 at 16:07 UTC |