Stripping text off of the end of a string
The script below will strip /search?q=perl master off the end of $srcUrl.
#!/usr/bin/perl my $srcUrl = 'http://www.google.com/search?q=perl master'; my $modUrl; $srcUrl =~ /\/search/; $modUrl = $`; print $modUrl;
[Click to add or edit comments])
Please prepend comments below including a date