Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Rakudo * DATA filehandle syntax

by molecules (Monk)
on Aug 11, 2010 at 16:44 UTC ( #854451=note: print w/ replies, xml ) Need Help??


in reply to Rakudo * DATA filehandle syntax

I don't know about the state of implementation for the DATA filehandle (and I've tried several variations to no avail). However, reading from a file seems to work fine:

my $data_fh = open 'data.txt'; for $data_fh.lines { .say }


Comment on Re: Rakudo * DATA filehandle syntax
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://854451]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-02-13 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (442 votes), past polls