in reply to Re^3: undefined value as filehandle from Curl.pm
in thread undefined value as filehandle from Curl.pm

The open() I referenced is directly from LWP/Curl.pm, thus it is not my code.

As for the setopt references, I'll be honest, I could not find any examples. I did attempt passing the filehandle reference, but resulted in the same error.

As for the setip() examples, I got them from previous posts here in a different thread

Replies are listed 'Best First'.
Re^5: undefined value as filehandle from Curl.pm
by stevieb (Canon) on Jun 28, 2016 at 16:21 UTC

      Yes, that is in my code. But, the error generated when running the script was not referencing my code:

      Can't use an undefined value as filehandle reference at /home/geof/httppost/lib/perl5/site_perl/5.8.8/LWP/Curl.pm line 236.

      my example code I posted should have had:

      open(my $fh, "<", "test.xml") or die "could not open input file ($!)\n";

      I had posted an older version of the code