develooper Front page | perl.perl5.porters | Postings from October 2015

Re: [perl #126271] File::Glob issue

Thread Previous | Thread Next
From:
Karl Williamson
Date:
October 5, 2015 20:17
Subject:
Re: [perl #126271] File::Glob issue
Message ID:
5612DAA6.20501@khwilliamson.com
On 10/05/2015 12:58 PM, John Imrie wrote:
> On 05/10/2015 19:01, karl williamson (via RT) wrote:
>> # New Ticket Created by  karl williamson
>> # Please include the string:  [perl #126271]
>> # in the subject line of all future correspondence about this issue.
>> # <URL: https://rt.perl.org/Ticket/Display.html?id=126271 >
>>
>>
>> These 2 lines:
>>
>> my @b = glob(qq{$path/mp_[0123456789]*.dat
>> 	$path/md_[0123456789]*.dat});
>>
>>
> What happens if you try this
>
> my @b = glob(qq{$path/mp_[0123456789]*.dat\
> 	$path/md_[0123456789]*.dat});
>
> with -DPERL_EXTERNAL_GLOB

sh: 2: /var/tmp/Alv2wNyeph/md_1.dat: Permission denied


However, this works

@b = glob(qq{$path/mp_[0123456789]*.dat \\
$path/md_[0123456789]*.dat});

Both the space and extra backslash are required


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About