Re: OUTFILE question(s)
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 31 May 2006 11:44:24 -0700
Greg wrote:
I am trying to get the contents of my variable OUTFILE
What does that mean? OUTFILE is not a Perl variable. Perl variables
start with either $, @, or %. I'm guessing that you meant OUTFILE is
an open file handle. If it is, in fact, a file opened for reading,
than OUTFILE is a poor choice of name. If it's a file open for
writing, then it makes no sense to talk about the "contents" of
OUTFILE.
Please post a short-but-complete script that demonstrates the problem
you're having.
assigned to
another variable and I can't seem to figure out how to do it.
Have you bothered reading the documentation for the language you're
using?
I've tried my $file = OUTFILE;
What made you think that would work? Randomly typing characters and
just seeing what happens is a poor method of programming.
Is there something very stupid that I'm missing?
Yes. The documentation that tells you how to read files.
Any help, criticism, good or bad would be appreciated,
Start here: http://perldoc.perl.org/perlintro.html#Files-and-I%2fO and
read it all, then read the documentations that it refers you to as well
(perlfunc for open(), and perlopentut)
Paul Lalli
.
- References:
- OUTFILE question(s)
- From: Greg
- OUTFILE question(s)
- Prev by Date: Re: OUTFILE question(s)
- Next by Date: Re: OUTFILE question(s)
- Previous by thread: Re: OUTFILE question(s)
- Next by thread: write/read to/from file problem
- Index(es):