Skip Menu |
Report information
Id: 122173
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: andynparker [at] googlemail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: Testing a file for being a 'named pipe'.
Date: Tue, 24 Jun 2014 12:31:50 +0100
From: Andrew Parker <andynparker [...] googlemail.com>
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 561b
Gentlemen, The following code fails though I think this is legal syntax: /home/aparker/Downloads/rakudo-star-2014.04/install/bin/perl6-p -e 'my $a = "julia_source"; if $a.IO ~~ :p {say "Hi!"; } ' No such method 'p' for invocant of type 'IO::Handle' in method ACCEPTS at gen/parrot/CORE.setting:8848 in method ACCEPTS at gen/parrot/CORE.setting:794 in block at -e:1 I wish to test a file for being a named pipe (mkfifo) using the '$filename.IO ~~ :p' syntax. The one liner works perfectly with the '~~ :d' for directory option. Andrew Parker


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org