At 14:02 -0700 2004.04.09, Bill Becker wrote:
>What finally worked was this sequence:
>
>  $fi =~ s#^(\s)#:$1#;
>  open(FI,"<$fi\0") or die "Can't open In: $!";
>
>but when altered slightly for a folder drag n'drop, with subsequent
>readdir and file name extraction via foreach , nothing works.

Drag-n-drop will use absolute paths, so you're turning:

        HD:foo:bar

Into:

        :HD:foo:bar

Which won't work.  Three-arg open() is really the best way.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to