Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Problem printing @arrays

by BillKSmith (Monsignor)
on Sep 04, 2021 at 23:13 UTC ( [id://11136451]=note: print w/replies, xml ) Need Help??


in reply to Problem printing @arrays

Now that you know that you have a windows file, it seems to me that the best solution is to read it the way perl on windows would. (Note: The IO-layer :crlf is the default on windows.)
open my $fh, '<:crlf', 'csw.txt' or die $!; chomp (my @words = <$fh>); close $fh;
Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-23 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found