Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: How do you use the if pragma?

by hdb (Monsignor)
on Apr 08, 2013 at 16:25 UTC ( #1027555=note: print w/replies, xml ) Need Help??

in reply to How do you use the if pragma?

Proposal to find an answer: write a script using File::Find to iterate over @INC to see whether "use if" is used anywhere and to what purpose. ;)

UPDATE: Here is the script.

use strict; use warnings; use File::Find; find( sub { my $f = $File::Find::name; return unless $f =~ /\.p(l|m)$/; return unless open my $fh, "<", $f; while(<$fh>){ print "$f: $_" if /^\s*use if/; } close $fh; }, @INC );

Just one hit on my machine. "use if" seems to be unpopular.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027555]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2018-03-22 14:50 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (277 votes). Check out past polls.