Re: qx, Filter::Simple, and testing

From: Peter Scott (peter_at_PSDT.com)
Date: 03/05/05


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/


Relevant Pages

  • Re: Wooden Scaffolding questions/help.
    ... at least two towers at 16' (platform height at 12') and the other two ... Cheap and safe probably means using standard scaff towers and get a ...
    (rec.arts.theatre.stagecraft)
  • Re: Shepherds Bush
    ... be deemed as safe. ... Paul Scott's comments on HSE/HMRI (now part of ORR ... I believe) indicate the true nature as these are subect to ... between the yellow line and the platform edge. ...
    (uk.transport.london)
  • Re: Runtime errors possible when I forgot include
    ... > frequently surprised when my code, that worked fine on the Sun, ... > crashed on the other platform. ... appears safe to lack for a declaration of the string functions, ...
    (comp.lang.c)
  • Re: Thread-safe caches
    ... then the larger operations are safe. ... Intel platform, you are in luck. ... memory barrier depends on your implementation, ...
    (comp.lang.lisp)
  • Re: When is "volatile" used instead of "lock" ?
    ... to call Monitor.Exit while another processor is executing the read of ... memory model, this irrespective the underlying HW platform. ...
    (microsoft.public.dotnet.languages.csharp)