Ask a Question related to PERL Miscellaneous, Design and Development.
-
jon rogers #1
close("all open files") - possible?
Hi
I have a problem with my Perl script not deleting all - but only some -
temporary files it is supposed to delete. The r/w file status is 777.
The only thing I can think of is that I have unclosed file handles laying
around in the code. Is there some easy way of closing all open file handles
in one go, or will I have to track them down one by one?
Thanks,
J
jon rogers Guest
-
How to add "..." button to a property to open up "File Open"?
I am creating a control and thinking about adding a property to the control. I will like a "..." button shown next to the value of this property... -
Gretag Macbeth i1Match v2.0.3a update disables "Open" command for Photoshop files
After I installed the i1Match v2.0.3a update, I am no longer able to open Photoshop files by using the "open" command in the Finder window. However,... -
animation "open" onPress( animation "close" ) go to Frame "myFrame"
I have searched hi and low for the answer and nothing has helped me as of yet. My Main timeline is sectioned off by keyframes that are 10 frames... -
Unable To Open "Recent Files"
I've seen this discussed before, but since the Forum Search Engine does not seem to be working, I'll ask it again: I am unable to open files from the... -
"Too many files open"
I'm popping back in to say "thanks" to all for their suggestions. I'm going to be visiting my mom in a few weeks and will be able to get my hands... -
Purl Gurl #2
Re: close("all open files") - possible?
jon rogers wrote:
(snipped)
> I have a problem with my Perl script not deleting all - but only some -
> temporary files it is supposed to delete.
Your error messages state what?
Purl Gurl
--
Perl Documentation : Apache Documentation
Kick Ass Programs : Kick Ass Rock N Roll
[url]http://www.purlgurl.net[/url]
Purl Gurl Guest
-
James Willmore #3
Re: close("all open files") - possible?
On Thu, 11 Sep 2003 17:13:43 +0200
jon rogers <jon.rogers@tv.tu> wrote:And your error is ($!) when trying to delete them?> I have a problem with my Perl script not deleting all - but only
> some - temporary files it is supposed to delete. The r/w file status
> is 777.
If you use IO::File to open/read/write/close the files, when you>
> The only thing I can think of is that I have unclosed file handles
> laying around in the code. Is there some easy way of closing all
> open file handles in one go, or will I have to track them down one
> by one?
'undef' the file handle, the file will close.
Having said that, what do you mean by "temporary"? Are these files
you open or are opened using IO::File?
--
Jim
Copyright notice: all code written by the author in this post is
released under the GPL. [url]http://www.gnu.org/licenses/gpl.txt[/url]
for more information.
a fortune quote ...
It wasn't that she had a rose in her teeth, exactly. It was more
like the rose and the teeth were in the same glass.
James Willmore Guest
-
Greg Bacon #4
Re: close("all open files") - possible?
In article <bjq2sn$cn8$1@news.gu.se>,
jon rogers <jon.rogers@tv.tu> wrote:
: I have a problem with my Perl script not deleting all - but only
: some - temporary files it is supposed to delete. The r/w file
: status is 777.
:
: The only thing I can think of is that I have unclosed file handles
: laying around in the code. Is there some easy way of closing all open
: file handles in one go, or will I have to track them down one by one?
Can you provide a *small* example that demonstrates the problem?
Greg
--
When the people find that they can vote themselves money, that will
herald the end of the republic.
-- Ben Franklin
Greg Bacon Guest



Reply With Quote

