in reply to Detecting whether forward slash is present in string
my $end = chop $string1; my $beg = chop reverse $string2; my $url = $string1 . ($end eq '/' ? '' : $end) . '/' . ($beg eq '/' ? +'' : $beg) . $string2;
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting whether forward slash is present in string
by ysth (Canon) on Sep 13, 2004 at 22:33 UTC | |
by Limbic~Region (Chancellor) on Sep 13, 2004 at 22:48 UTC |