in reply to Re: Pentesting tool
in thread Pentesting tool

Ok thanks and sorry. Also I managed to get it working by using chomp on $list. I'll check the return of open just for educational. purposes though

Replies are listed 'Best First'.
Re^3: Pentesting tool
by AnomalousMonk (Archbishop) on Jul 04, 2011 at 16:08 UTC
    ... I managed to get it working by using chomp on $list.

    I'm sure you realize this, but just in case: chomp removes a trailing record-separator sequence (newline by default), if present, from a string.

    I'll check the return of open just for educational. purposes though [sic] [emphasis added]

    To reiterate JavaFan's earnest plea, do yourself an enormous favor and always check the return status of open or any other operation having a 'status' that can be checked! What you will learn is that this practice is a good way to avoid headaches.