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


in reply to Removing files from remote server

I suspect also that unlink $lib is more portable that system("rm -rf $lib");

nah, forget it, Salva and CountOrlok had explained much better the idea

mmh -> my $HOSTS = <MYFILE>; myfile is a filehandle (scalar) if you want an array from a file (my @HOSTS = <MYFILE>;) use tie. You should also to close the filehandle when you finish