How to i get a value in the \*Symbol::GEN1

I would like to get this variable 'net_cmd_resp' => '"/test" directory created.' ,

use strict; use warnings; use Data::Dumper; use Net::FTP; $Data::Dumper::Terse = 0; $Data::Dumper::Sortkeys = 1; $Data::Dumper::Purity = 1; foreach (<DATA>){ chomp; my ($user, $passwd) = split(/,/,$_); next if (length $user <= 0); print $user . " " . $passwd . "\n"; chomp $user; chomp $passwd; my $ftp = Net::FTP->new('xxxxxxx', Debug => 0, Passive => 1); my $r = $ftp->login($user,$passwd); print Dumper $ftp; if ( $r ne 1){ print "Could not login\n\n"; sleep(5); }else{ my $r = $ftp->mkdir('test'); print Dumper $ftp; if ( $r ne 1){ print "Could not make dir\n"; }else{ $ftp->rmdir('test'); } } } __DATA__ a,1fpcq b,sVzqD c,KN6Vi d,AcT_2
Gives this output of
a 1fpcq $VAR1 = bless( \*Symbol::GEN1, 'Net::FTP' ); *Symbol::GEN1 = { 'io_sock_nonblocking' => 0, 'io_socket_domain' => 2, 'io_socket_proto' => 6, 'io_socket_timeout' => 120, 'io_socket_type' => 1, 'net_cmd_code' => '550', 'net_cmd_debug' => 0, 'net_cmd_lines' => [], 'net_cmd_partial' => '', 'net_cmd_resp' => [ '"/test" directory created.' + ], 'net_ftp_blksize' => 10240, 'net_ftp_host' => 'xxxxxxxxxx', 'net_ftp_localaddr' => undef, 'net_ftp_passive' => 1, 'net_ftp_type' => 'A' }; ETC....

In reply to Net::Ftp question by crusty_collins

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.