Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

Hi FAX,
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


Comment on Re: Incomplete Output When Printing Hash
Download Code
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' => 'test@test.com', 'clntobid' => '2', 'objtocat' => 'User', 'directory' => 'testuser', 'objtotyp' => 'Users', 'PROCESS.javaloc.Pages1' => 'Pages1', 'OBJECT.directory' => 'testuser', 'email' => 'test@test.com', 'usroidst' => 1, 'password' => 'test', 'clientid' => '2', 'PROCESS.javaloc.Menus1' => 'Menus1', 'objecttype' => 'Users', 'OBJECT.useremail' => 'test@test.com', '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.

    FAX

      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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-07-13 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls