This node has been developed as a collaborative effort by the Perl Monks to help people who are new to Perl and may be unfamiliar with online forums. New posters to perl monks may (in the fullness of time) be sent a link to here to provide a useful entry point to all things Monastery and Perl. This is our attempt to help newcomers get the most out of the monastery and a language we love.
Cheers!
#!/usr/bin/perl -w # "-w" turns on all sorts of warnings about probable errors.
use diagnostics; # optional; causes warnings to be explained in greater detail.
use strict; # generates compile and run-time errors for certain unsafe constructs.
open(FILE, "</file.txt") or die "Error opening /file.txt Perl says: $!\n";$! will contain an error message that will give you more information on where your program is going wrong. The perlfunc man page will give you more information on the return values from functions.
Some of the benefits of using modules include speeding development time, and increased reliability. As many modules have been widely used many of the bugs have already been ironed out for you. Modules are generally updated with bug fixes so maintenance becomes as easy as installing the new module.
To get them working A Guide To Installing Modules and installing modules on Win32 may be helpful.
As of Jun 10, 2001 the following monks have all contributed to this document : tachyon, petdance, LD2, VSarkiss, jptxs, Vizjerai, Brovnik, ar0n , myocom, boo_radley, TStanley, perigeeV, converter, frag, ZZamboni, arhuman, mpolo, kudra, marcink, tilly, Abigail, Vynce, Lexicon, mpolo, Odud. Thank you all. Increasingly loosely based on a c.l.p.m. document by Nathan Torkington.
******************************************************
How could we possibly finish without a message from our 'sponsor' ;-)
Click here to check out our stuff (it's hot): Is there PerlMonks merchandise I can buy?
******************************************************
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: New Monks
by frag (Hermit) on Jun 09, 2001 at 04:48 UTC | |
by tachyon (Chancellor) on Jun 09, 2001 at 22:08 UTC | |
by frag (Hermit) on Jun 11, 2001 at 06:41 UTC | |
Re: New Monks
by myocom (Deacon) on Jun 09, 2001 at 02:36 UTC | |
by boo_radley (Parson) on Jun 09, 2001 at 09:20 UTC | |
by tachyon (Chancellor) on Jun 09, 2001 at 03:40 UTC | |
by myocom (Deacon) on Jun 09, 2001 at 03:52 UTC | |
by tachyon (Chancellor) on Jun 09, 2001 at 15:52 UTC | |
Re: New Monks
by perigeeV (Hermit) on Jun 09, 2001 at 04:01 UTC | |
by tachyon (Chancellor) on Jun 09, 2001 at 16:41 UTC | |
by converter (Priest) on Jun 09, 2001 at 18:56 UTC | |
Re: New Monks
by ZZamboni (Curate) on Jun 09, 2001 at 09:29 UTC | |
by arhuman (Vicar) on Jun 09, 2001 at 09:47 UTC | |
by mpolo (Chaplain) on Jun 09, 2001 at 10:33 UTC | |
by tachyon (Chancellor) on Jun 09, 2001 at 18:58 UTC | |
by ZZamboni (Curate) on Jun 09, 2001 at 19:38 UTC | |
by tachyon (Chancellor) on Jun 09, 2001 at 19:54 UTC | |
by jynx (Priest) on Jun 10, 2001 at 05:49 UTC | |
by tachyon (Chancellor) on Jun 10, 2001 at 14:26 UTC | |
Re: New Monks
by TStanley (Canon) on Jun 09, 2001 at 03:55 UTC | |
Re: New Monks
by marcink (Monk) on Jun 10, 2001 at 18:47 UTC | |
Re: New Monks
by tachyon (Chancellor) on Jun 09, 2001 at 19:01 UTC | |
Re: New Monks
by tachyon (Chancellor) on Jun 09, 2001 at 19:04 UTC | |
Re: New Monks
by tachyon (Chancellor) on Jun 09, 2001 at 19:39 UTC | |
by chumley (Sexton) on Jun 10, 2001 at 08:25 UTC | |
Re: New Monks
by tachyon (Chancellor) on Jun 09, 2001 at 19:02 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |