Skip Menu |

This queue is for tickets about the File-SearchPath CPAN distribution.

Report information
The Basics
Id: 55495
Status: resolved
Priority: 0/
Queue: File-SearchPath

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.05
Fixed in: (no value)



Hello and thank you for File::SearchPath 0.05, On VMS path_sep is pipe "|". perl -e "use Config;print $Config{path_sep}" | When it is used with split in _env_to_dirs it needs to be escaped thus: << return split(/$ps/, $path); Show quoted text
>> return split(/\Q$ps\E/, $path);
Otherwise for example: perl -e "print join ',' , split(/|/,'abc|def')" a,b,c,|,d,e,f perl -e "print join ',' , split(/\Q|\E/,'abc|def')" abc,def Cheers, Peter (Stig) Edwards
Subject: Re: [rt.cpan.org #55495]
Date: Fri, 12 Mar 2010 12:59:11 -1000
To: bug-File-SearchPath [...] rt.cpan.org
From: Tim Jenness <tjenness [...] cpan.org>
Show quoted text
> > > On VMS path_sep is pipe "|". > > perl -e "use Config;print $Config{path_sep}" > | > > When it is used with split in _env_to_dirs it needs to be escaped thus: > > << return split(/$ps/, $path);
> >> return split(/\Q$ps\E/, $path);
> > Otherwise for example: > > perl -e "print join ',' , split(/|/,'abc|def')" > a,b,c,|,d,e,f > > perl -e "print join ',' , split(/\Q|\E/,'abc|def')" > abc,def > > Cheers, > Peter (Stig) Edwards >
Thanks for the report. In the short term, does the CPAN Env::Path module work for you? That would work around this. Tim
Fixed in v0.06. Sorry for the delay.