http://www.perlmonks.org?node_id=130188


in reply to Re: Scan C-Class for used IP-addresses
in thread Scan C-Class for used IP-addresses

In short, you can't, really. The way I use the "Download code" link is to click on it, bringint up a window with the code in plain text, all alone, then saying File->Save as.. to save it as some file with a vaguely correct name. The reason that your browser is saving it as index.pl is because that's the name of the bit on perlmonks which is serving you the code.

If your concern is because you mention "scansub.pl" in the code -- well, that's what $0 is for, no? ;>

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Replies are listed 'Best First'.
Re: Re: Re: Scan C-Class for used IP-addresses
by cab (Beadle) on Dec 07, 2001 at 18:21 UTC
    Thanks, i seem to learn something new about perl every day :)

    /cab