my $end = chop $string1; my $beg = chop reverse $string2; my $url = $string1 . ($end eq '/' ? '' : $end) . '/' . ($beg eq '/' ? +'' : $beg) . $string2;
Cheers - L~R
In reply to Re: Detecting whether forward slash is present in string
by Limbic~Region
in thread Detecting whether forward slash is present in string
by philuk86zen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |