Pretty print commands and related

last update: by

Contents

Exported Functions
printTable($rT)
dumpData($rH,$pre)
ask_secret ($prompt)

Author : Bernhard Kuner

Exported Functions

ask_secret, dumpData, printTable

printTable($rT)

Print formated table, sort table by column $sortIdx, unsorted if $sortIdx is undef

Example : Fill and print a table.

   push (@array, \@a);       
   #  OR 
   push (@$aRef, ["colVal1","colVal2","colVal3","colVal4"],1);
   
   printTable(\@array,["HeadCol1","HeadCol2","HeadCol3","HeadCol4"],2);

Parameter :

dumpData($rH,$pre)

Print any data structure. Nearly the same as Data::Dumper(), but in a more compact way. Used for debug purposes. - what else:-)

Parameter :

ask_secret ($prompt)

Hidden console input for passwords etc