# New Ticket Created by   
# Please include the string:  [perl #122173]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=122173 >


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





Reply via email to