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.
In reply to Re: open $self->{FILE}
by radiantmatrix
in thread open $self->{FILE}
by b888
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |