sherab has asked for the wisdom of the Perl Monks concerning the following question:
Howdy monks!
I'm trying to pull out a value from this Dumper and I am able to almost grab all of it except for one bit (as you can guess it's a really long dump so I am trying to only put the relevant part in).
I am able to successfully pull out the 'image/jpeg' portion by this .....
$query->{'.tmpfiles'}->{$file_uploaded}->{'info'}->{'Content-Type'}
What I want is the "/usr/tmp/CGItemp12261" nugget. I can only get as far as..
$query->{'.tmpfiles'}->{$file_uploaded}->{'info'}->{'name'}
and I get totally perplexed.
Does anyone know how to get at this? Thank you so much in advance. (Clarification: For the curious: that location is a temp location for an uploaded file that I need to check).
$VAR1 = bless( { '.charset' => 'ISO-8859-1', '.tmpfiles' => { '*Fh::fh00001testforme.jpg' => { 'name' => bless( do{\(my $o = '/usr/tmp/CGItemp12261')}, ' +CGITempFile' ), 'hndl' => bless( \*{'Fh::fh00001testforme.jpg'}, 'Fh' ), 'info' => { 'Content-Type' => 'image/jpeg', 'Content-Disposition' => 'form-data; name="FileFT1"; f +ilename="testforme.jpg"' } } },
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I get this reference?
by AnomalousMonk (Archbishop) on Feb 04, 2014 at 22:12 UTC | |
|
Re: How do I get this reference?
by Kenosis (Priest) on Feb 04, 2014 at 20:16 UTC | |
by sherab (Scribe) on Feb 04, 2014 at 21:50 UTC | |
by Kenosis (Priest) on Feb 04, 2014 at 22:34 UTC | |
by sherab (Scribe) on Feb 04, 2014 at 20:23 UTC |