develooper Front page | perl.beginners | Postings from October 2009

Re: Tips and Tricks?

Thread Previous | Thread Next
From:
Shawn H Corey
Date:
October 4, 2009 11:29
Subject:
Re: Tips and Tricks?
Message ID:
4AC8E979.2030902@gmail.com
Slick wrote:
> I am new at this perl thing. I just want to know tips and simple scripting.  I also use strawberry perl for my program. 

1. Create a folder for trying Perl:  md C:\TRY
(In Linux: mkdir ~/try )

2. Create a file in your try folder called template.pl and load the
following in it.  When you want a new Perl script, copy it to the new name.

#!/usr/bin/env perl

use strict;
use warnings;

use Data::Dumper;

# Make Data::Dumper pretty
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent   = 1;

# Set maximum depth for Data::Dumper, zero means unlimited
$Data::Dumper::Maxdepth = 0;

# place new code here

__END__


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About