Perl Data Dumper

If you use the Data::Dumper module you can print out the structure of arrays/hashes ... etc by doing the following.

#!/usr/bin/perl

use strict;
use warnings;

use Data::Dumper;

$data = "This is actually an array or hash place holder - NOT a string.";

print Dumper($data);

I think this is like using PHP's print_r() function.

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.