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

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



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.

Jim
--
Jim Miner          jfm@winternet.com

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