in reply to Re: Incomplete Output When Printing Hash
in thread Incomplete Output When Printing Hash

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

Replies are listed 'Best First'.
Re^3: Incomplete Output When Printing Hash
by AnomalousMonk (Archbishop) on Aug 19, 2013 at 01:20 UTC

    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.