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

[MacPerl] problem with open()



Some apps create filenames with trailing spaces - I personally don't, but I
haven't read anywhere that MacOS dissallows this. Anyway, the following
snippet fails to work for any such filenames:

--------------
#!perl -w

foreach $filename (@ARGV) {

	chomp($filename); #problem exists whether chomp is used or not

	open(FILE,"<$filename") || die "open($filename) failed";
 	....
--------------

What does MP have against these filenames?
--------------------------
bibleBlack@starless.com.au

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch