Andreas Moroder wrote:
Hello,
Hello,
I have found a nice utility
http://www.novell.com/communities/node/389/adm+file+utilities+2+5
that has two problems:
has *many* problems.
1) It creates directories and files but it uses the \ backslash so it
does not work on a linux machine.
Is there a constant or a function that give back the right character ( /
for linux, \ for windows console ) ?
Use / on both Linux and Windows.
2) It does ignore Umlaute ( special german characters )
is there a clean way in perl to convert all the umlaute to ascii
standard characters while reading from a file or as in this case in a
array ?
3) No use of warnings or strictures.
4) There is no error checking for system calls.
5) It is Perl4 code from 8 years ago.
The script reads in the file once
open(ADMFILE,$admFile);
@all=<ADMFILE>;
close(ADMFILE);
foreach(@all) {
.....
Your question is?
John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stupidity. -- Damian Conway
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/