Re: qx, Filter::Simple, and testing
From: Peter Scott (peter_at_PSDT.com)
Date: 03/05/05
- Next message: Ilya Zakharevich: "Re: negative backreference?"
- Previous message: GreenLeaf: "Re: how to convert bit vectors to hex"
- In reply to: Anno Siegel: "Re: qx, Filter::Simple, and testing"
- Next in thread: Abigail: "Re: qx, Filter::Simple, and testing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 05 Mar 2005 10:39:56 GMT
In article <d0au0t$dkk$1@mamenchi.zrz.TU-Berlin.DE>,
anno4000@lublin.zrz.tu-berlin.de (Anno Siegel) writes:
>Abigail <abigail@abigail.nl> wrote in comp.lang.perl.misc:
>>
>> I'm working on a module that uses source filtering, using Filter::Simple.
>> One of the things it does is replacing certain constructs inside double
>> quoted environments, like "", qq {}, etc. Testing "", s///, m//, qq{}
>> is fairly straightforward.
>>
>> I'm looking for ideas on how to test qx{} (and ``). It should work on
>> any platform Perl works on, and it should be safe.
>
>So you want something that can be safely executed on every system that
>runs Perl (whatever "execute" means on that system). Is that what you're
>getting at? If not, apologies.
The one executable you can count on being there is perl, so I
would think executing `$^X -v` would be pretty safe. Although
according to perlvar there are platforms that don't support
command output capture to begin with.
-- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/
- Next message: Ilya Zakharevich: "Re: negative backreference?"
- Previous message: GreenLeaf: "Re: how to convert bit vectors to hex"
- In reply to: Anno Siegel: "Re: qx, Filter::Simple, and testing"
- Next in thread: Abigail: "Re: qx, Filter::Simple, and testing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|