Porting a tool using open() from Unix to Mac
[email protected] (Jan Theofel) Mon, 26 May 2003 10:14:12 +0200
| Newsgroups | perl.macperl.anyperl |
|---|---|
| Organization | ETES - EDV-Systemhaus GbR |
| Message-ID | <[email protected]> |
Hello,
after getting my script running (thanks for your answers), I have another
problem:
The open commands seems to make trouble. The script was ported from a Unix
to Mac and therefore uses the / to separate paths and files. I first run
the script and it created files having the "/" in the filename.
To correct this I wrote a little sub replacing the / with an : and called
it in ever opne like that:
open(FILEHANDLE, &rewrite_open_str(">path/file.out"))
This would be similar to
open(FILEHANDLE, ">path:file.out");
But the open fails. In $! I only get "invalid argument".
Can someone tell me what's wrong here?
Thanks in advance,
Jan
--
Jan Theofel Fon: +49 (7 11) 48 90 83 - 0
ETES - EDV-Systemhaus GbR Fax: +49 (7 11) 48 90 83 - 50
Libanonstrasse 58 A * D-70184 Stuttgart Web: http://www.etes.de
______________________________________
Inflex - eMail Scanning and Protection
Queries to: [email protected]