Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Linux file handle not working

by 1nickt (Canon)
on Jan 16, 2020 at 01:33 UTC ( [id://11111467]=note: print w/replies, xml ) Need Help??


in reply to Linux file handle not working

Hi,

Works for me with Math::Prime::Util v.073 on MacOS with Perl 5.30.1 and on Ubuntu with Perl 5.28.1 :

$ echo 147416345806550029415781910597841 > input.txt
$ perl -Mstrict -Mntheory=:all -wnE 'chomp; say is_prime($_);' input.t +xt 1
$ perl -Mstrict -Mntheory=:all -wnE 'chomp; say length($_);' input.txt 33

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found