[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] open() misfeature?



h0444zkf@rz.hu-berlin.de (Erich Rast) writes:
>First of all: forget about the script I've recently put on this list. It's
>full of horrible bugs and won't work (by the way, it's now called
>'httpjob.pl' ;-)

BTW, Perl scripts should not have a .pl suffix. Only perl4 library files should
be written with a .pl suffix.

># Can't open ' Mac:Desktop Folder:index.html': Invalid argument
>              ^
>              |
>               - that's the problem!

Yes, open() is documented to ignore leading & trailing spaces. IO::File should
be able to open spaced out files.

>2.) Another "misfeature": When i'm editing a script in MacPerlApp 5.1.3r2
>and restart my Mac without exiting the application (reset via
>ctrl-apple-'turn on button'), the script vanishes magically from my
>harddisk and never appears again... :-( This is not a big problem as long
>as you know it...

I suspect this has to do with the disk cache, not with MacPerl (Although
I *could* force a flush, I suppose).

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
  "And that's why I am going to turn this world upside down, and make
   of it a fire so *bright* that someone real will notice"
                                -- Vernor Vinge, _Tatja Grimm's World_