Difference between revisions of "Perl"
Jump to navigation
Jump to search
m |
|||
Line 2: | Line 2: | ||
Some shortcuts I'd like to remember | Some shortcuts I'd like to remember | ||
− | + | Print out the contents of $variable in a structured format. | |
− | + | <syntaxhighlight lang=Perl> | |
− | + | use Data::Dumper; | |
+ | print Dumper($variable); | ||
+ | </syntaxhighlight> |
Revision as of 18:32, 12 February 2018
I'm leaving Perl, traded it for Python. Some shortcuts I'd like to remember
Print out the contents of $variable in a structured format.
use Data::Dumper;
print Dumper($variable);