in reply to Simple link extraction tool

my $url = <@ARGV>;
That's definitely some bizarre and easy to break code. I think you intended this:
my $url = shift;
See my previous writeup on why that's broken.