in reply to Pentesting tool
Expanding on JavaFan's reply, use chomp to remove the line terminator and also use the three-argument form of open with lexical rather then package filehandles and check whether the open was successful, looking at $OS_ERROR if not. It is also not advisable to have scalars and arrays with the same name as that will only lead to confusion.
... chomp( my $list = <> ); open my $urlsFH, '<', $list or die "open: < $list: $!\n"; my @urls = <$urlsFH>; ...
I hope this is helpful.
Cheers,
JohnGG
|
|---|