Andreas Moroder wrote: > Hello, > > I have found a nice utility > http://www.novell.com/communities/node/389/adm+file+utilities+2+5 > that has two 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 ) ?
Yes, see `perldoc File::Spec` > > 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 ? > > The script reads in the file once > open(ADMFILE,$admFile); > @all=<ADMFILE>; > close(ADMFILE); If it's UTF-8, you can set the encoding with the open: open my $admfile_fh, '<:encoding(utf8)', $admFile or die "could not open $admFile: $!\n"; -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/