in reply to open $self->{FILE}
I can't imagine that's the best way to approach your problem. The package that $self is an instance of should implement its own accessor and keep a private filehandle, so that your code might look like:
$self->open(">>$self->{file_path}$self->{file_name}"); $self->print "some text here\n"; $self->close;
Perhaps if you gave us a little more background about what you're trying to accomplish, we might be able to help you find a different approach.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open $self->{FILE}
by revdiablo (Prior) on Nov 05, 2004 at 20:39 UTC | |
by radiantmatrix (Parson) on Nov 05, 2004 at 21:13 UTC |