Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Fastest way to minimally check that file contains perl code?

by hippo (Bishop)
on Mar 13, 2020 at 16:46 UTC ( [id://11114229]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Fastest way to minimally check that file contains perl code?
in thread Fastest way to minimally check that file contains perl code?

The Moose argument is why I like vr's idea. If perl -c doesn't bomb out early on you can be pretty confident it is actually compiling Perl (with Moose or something equally heavy).

  • Comment on Re^3: Fastest way to minimally check that file contains perl code?
  • Download Code

Replies are listed 'Best First'.
Re^4: Fastest way to minimally check that file contains perl code?
by LanX (Saint) on Mar 13, 2020 at 17:22 UTC
    > it is actually compiling Perl (with Moose or something equally heavy)

    Well, after the timeout you'd only have proven (again and again) that Moose contains Perl, the file in question could still be just garbage starting with use Moose

    But yeah, this should be sufficient for the 80% threshold. :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

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

    No recent polls found