Re: perl script to write to a text file

From: Sherm Pendley (spamtrap_at_dot-app.org)
Date: 02/17/05


Date: Thu, 17 Feb 2005 01:45:42 -0500

Mounilk wrote:

> thanks Sherm.John, i really appreciate you helping me out. i couldn't
> really follow your suggestion. i am sorry if i sound naive,but i've
> just started using perl a couple of days. could you please elaborate on
> your suggestion.

"perldoc" is a utility commonly used to read the documentation that comes
with Perl. Other methods can be used too; for example ActiveState's Perl
for Windows comes with documentation in HTML format as well.

Regardless of whether you're actually using the "perldoc" tool or not, when
you see the term "perldoc Foo" used here in this group, it's a pointer to
the documentation that comes with Perl.

When you're using the "perldoc" tool, "perldoc -q Foo" searches the FAQ
questions for the word "Foo". "perldoc -f foo" will display the docs for
the function foo(). And "perldoc Foo::Bar" will display docs for the module
Foo::Bar.

So, my suggestion to you was to read the documentation for the open() and
print() functions. John's suggestion is good too - go to <http:/
search.cpan.org>, find the File::Slurp module, and have a look at its
documentation.

And like I said before - please read (and follow) the posting guidelines
that appear here twice a week.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


Relevant Pages

  • Re: Difference between system() and exec() and ``
    ... As we know there are 3 ways a system shell command to be executed. ... than reading about them in the Perl documentation. ... perldoc -f system ...
    (perl.beginners)
  • Re: regex to convert 1000000 -> 1,000,000 ?
    ... >> is a big chunk of that documentation and pretty hard to miss, ... the whole situation is like this: Perl is like a software ... If the newbie is an idiot, and uses grep not to search and then check the ... > have to first KNOW of perldoc. ...
    (comp.lang.perl.misc)
  • Re: In search of Perl tutorials.
    ... I'll try not to sound like to much of a total n00b here... ... > new to Perl, but is a relatively experienced programmer. ... I firmly believe in the documentation that ships with a Perl ... The Perl documention (known as perldoc which is also the program to ...
    (comp.lang.perl.misc)
  • Re: perl almost an adult? [was: s/// w/o RE]
    ... the answer is right there in perldoc perlre!" ... > Isn't perl great? ... It's sometimes also usefull to grep through the perl documentation, ... For a more visual browsing experience, ...
    (perl.beginners)
  • Re: Absolute FreeBSD
    ... The switch from Learning Perl ... Try running `perldoc perlintro` and `perldoc perllol`. ... most free documentation that comes ... something like The Complete FreeBSD than freebsd-questions. ...
    (freebsd-questions)