On Tue, Jul 29, 2008 at 09:20:28AM -0500, David Nicol wrote: > On Tue, Jul 29, 2008 at 8:22 AM, Mark Mielke <mark@mark.mielke.cc> wrote: > > Specifically, \Q...\E will prefix certain characters with '\', and this will > > make it impossible to represent file names with the same special characters > > (the theoretical filenames with '|', '<' or '>') but that are not escaped in > > the file name. > > phooey. > > Prefixing < takes care of opening and reading files with pipes and so > on in them, but leading/trailing space seems impossible to represent > with a 2-arg open. It has been documented for a long, long time how to solve this: my $file = " hello "; open my $fh, "< ./$file\0"; Granted, "\0" is a bit of an oddity, but it is possibly. And you don't need sysopen. I think the current documentation is in perlopentut. AbigailThread Previous | Thread Next