develooper Front page | perl.perl5.porters | Postings from February 2000

Net::Config undefined $home warning

From:
Tom Horsley
Date:
February 10, 2000 07:14
Subject:
Net::Config undefined $home warning
Message ID:
200002101514.PAA06801@amber2.ccur.com
When you use Net::FTP from a place where no home directory is defined,
the Net::Config code gets an undefined symbol warning in the place
where it is trying to read "$home/.libnetrc".

It would be nice if a defined($home) test could be added there to avoid
the warning.

In case you are wondering, I'm getting this error because I'm running a
Win32 version of perl and having an Outlook "Action" run a script to FTP
some files over to my Unix box when it gets mail on the PC (loads of kludgy
fun :-).

Neither getpwuid, nor $ENV{'HOME'} are defined at that point.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About