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

Net::Config undefined $home warning

Tom Horsley
February 10, 2000 07:14
Net::Config undefined $home warning
Message ID:
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. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About