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

Re: [MacPerl-Toolbox] Moving files from:End



At 19.37 -0400 1999.07.20, Jim Miner wrote:
>At 11:44 AM -0400 7/20/99, Chris Nandor wrote:...
>>Sometimes, I don't know why, some file operations fail on filenames
>>containing newlines.
>
>Maybe due to open eating whitespace at the end of a path?
>
>  #! perl -w
>
>  open(X, "godzilla:Icon\n\000") || die "Can't open Icon<CR><NUL>";
>
>  open(X, "godzilla:Icon\n") || die "Can't open Icon<CR>";
>
>
>gives me
>
>  # Can't open Icon<CR>.
>  File '<AppleEvent>'; Line 5
>
>Beware open.

Right, but I was thinking of other file operations.  I seem to recall
seeing a "can't stat" because of newlines.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org