in reply to Generate temporary file and FTP upload

"Tk::Error...What am I missing"

I don't know, but i wonder where TK is in your code?

From the docs:

"Tk::Error is invoked by perl/Tk as if by the perl code:" $mainwindow->Tk::Error("error message", location ...);

"I'm a simple man." (B.B. King).

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
Re^2: Generate temporary file and FTP upload
by welleozean (Novice) on Jun 30, 2017 at 19:29 UTC

    That is a good point. The code is part of a bigger script with Tk. However, running it alone produces the same error (without Tk mention): "Must specify remote filename with stream input at"

      Ah, it looks like this comes from the terribly long sub _store_cmd in Net::FTP at line 782.

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help