Re: Problem with glob and filenames containing '[' and ']'
- From: David Squire <David.Squire@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 15:13:54 +0100
Mumia W. (reading news) wrote:
On 09/27/2006 06:33 AM, David Squire wrote:
Hi folks,
I'm having trouble using glob to find filenames that contain '[' and
']', even though I am escaping those meta-characters. Here is an example
script and output:
----
#!/usr/bin/perl
use strict;
use warnings;
use CGI::Deurl;
for my $EncodedFile (
'/damocles/documents/ENH1260/2006/2/Short
assignment/20331975_week9%5B1%5D.txt',
'/damocles/documents/ENH1260/2006/2/Short
assignment/20331975_week9.txt',
This creates two strings containing "Short \n assignment"
I think that's going to confuse glob big-time.
No. That's just an artifact of word-wrapping in your newsreader. See my
second, simpler, example.
DS
.
- References:
- Problem with glob and filenames containing '[' and ']'
- From: David Squire
- Re: Problem with glob and filenames containing '[' and ']'
- From: Mumia W. (reading news)
- Problem with glob and filenames containing '[' and ']'
- Prev by Date: Re: Need help with pattern matching/substitution.
- Next by Date: Re: Problem with glob and filenames containing '[' and ']'
- Previous by thread: Re: Problem with glob and filenames containing '[' and ']'
- Next by thread: Re: Problem with glob and filenames containing '[' and ']'
- Index(es):
Relevant Pages
|