Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Incomplete Output When Printing Hash

by 2teez (Priest)
on Aug 18, 2013 at 20:27 UTC ( #1049944=note: print w/replies, xml ) Need Help??

in reply to Incomplete Output When Printing Hash

Can you try printing out the hash keys and it's corresponding values, without the HTML tags and see what you have first, like so:

use Data::Dumper; ... print Dumper \%myobjtdets;
Then if all your keys and values are printed without truncation of your data, then you know where the issue is.
If not, then let's take a look into your dataset.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Replies are listed 'Best First'.
Re^2: Incomplete Output When Printing Hash
by FAX (Novice) on Aug 18, 2013 at 21:12 UTC

    Used your code as written (sans ellipse)and generated a partial, truncated list again as follows;

    $VAR1 = { 'prilabst' => 0, 'firstname' => 'Test', 'OBJECT.listmenuid' => '1650', 'odetnone' => 0, 'useremail' => '', 'clntobid' => '2', 'objtocat' => 'User', 'directory' => 'testuser', 'objtotyp' => 'Users', 'PROCESS.javaloc.Pages1' => 'Pages1', '' => 'testuser', 'email' => '', 'usroidst' => 1, 'password' => 'test', 'clientid' => '2', 'PROCESS.javaloc.Menus1' => 'Menus1', 'objecttype' => 'Users', 'OBJECT.useremail' => '', 'OBJECT.savemenuid' => '381',

    It's beginning to feel as though there is something else wrong that neither strict nor warnings is telling me about. This is far too simple a command to fail without good reason ... or so it would seem.

    Thanks for your help on this, though. I greatly appreciate it.


      I'm still confused about what you're doing. Do you say that you can run code like

      use Data::Dumper; my %hash = initialize_a_hash_somehow(); print 'key/value pairs: ', scalar keys %hash; print Dumper \%hash;

      ... and see printed to the console the number 63 for key/value pairs and a listing of 19 key/values from Dumper? (Also: where's the closing curly bracket for the Dumper output?) If this is the case, something is seriously b0rken in your system!

      It seems to me that the first step is to get consistent data printed to the console and then figure out how to print it to a browser.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049944]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2018-01-20 04:17 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.