I used Data::Dumper on the "filehandle" returned to me by use of libnet's Net::FTP to issue a RETR FTP command, which returns a filehandle to a remote file.

if you dump what Net::FTP returns here it is:

{ $fh = $self->_do_ftp_cmd("retr", $file); die("File unavailable: $file") unless $fh; } use Data::Dumper; warn sprintf "FILEHANDLE EXISTS AND HERE IT IS: %s", Dumper($fh); #### OUTPUT Warning: FILEHANDLE EXISTS AND HERE IT IS $VAR1 = bless( \*Symbol::GEN16, 'Net: +:FTP::I' );

And in looking at Net::FTP::I it is fairly apparent that he is making use of the hash reference of this generated symbol:

package Net::FTP::I; use vars qw(@ISA $buf $VERSION); use Carp; require Net::FTP::dataconn; @ISA = qw(Net::FTP::dataconn); $VERSION = "1.08"; # $Id: //depot/libnet/Net/FTP/I.pm#6$ sub read { my $data = shift; local *buf = \$_[0]; shift; my $size = shift || croak 'read($buf,$size,[$timeout])'; my $timeout = @_ ? shift : $data->timeout; $data->can_read($timeout) or croak "Timeout"; my($b,$n,$l); ## *** the line below implies use of the hash part of ## *** the type glob my $blksize = ${*$data}{'net_ftp_blksize'}; # $blksize = $size if $size > $blksize;

But my question is: how could I redo my original call to Dumper() so that it dumped every aspect of the typeglob that $fh referred to?


In reply to Recursive Data::Dumper use needed by princepawn

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.