in reply to Failed match/substitution

Looks like $page_dir has a trailing newline, and you need to chomp it.

As a stylistic point, you have major LTS (leaning toothpick syndrome). Your code'll be much nicer to read if you use something like m#http://# instead of /http:\/\//.

Replies are listed 'Best First'.
Re: Re: Failed match/substitution
by PerlJam (Sexton) on May 02, 2001 at 09:03 UTC
    Thanks for your response. I'll try chomping it. Also thanks for the suggestion on using the alternate seperators. That'll read much better.
    ----
    Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated failures. Persistence and determination alone are omnipotent. --Calvin Coolidge (1872-1933)