agent00013 has asked for the wisdom of the Perl Monks concerning the following question:
Output is:$base_url = "http://www.something.com/angels/devils"; $base_url =~ s!/[^/]*?$!!; #strip off the subdirectory print "$base_url \n"; $address = "http://www.something.com/angels/devils/../faries/"; $address =~ s!.*/\.\./(.*)!$base_url/$1!eg; ### stick this in &grabLinks ### print "$address \n";
http://leto.advtech.uswest.com/SERVICES Illegal division by zero at line 14. #it's line 7 here...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why am I getting a Divide by Zero error?
by davorg (Chancellor) on Jun 20, 2001 at 20:15 UTC | |
|
Re: Why am I getting a Divide by Zero error?
by dimmesdale (Friar) on Jun 20, 2001 at 21:57 UTC |