Mounilk said:
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--