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

Re^2: regexp for directory

by my_nihilist (Sexton)
on Mar 17, 2008 at 16:36 UTC ( #674592=note: print w/ replies, xml ) Need Help??


in reply to Re: regexp for directory
in thread regexp for directory

I used this on linux and it works exactly as indicated, eg. "./test.p sort" produced:

sort in /home/me/perl/*.pl: 6 -- big.II.pl 4 -- big.pl 1 -- sortoccurances.pl 1 -- example3.pl 1 -- test.pl
Nb. toolic "if ($this =~ /$bit/)" never was inside the while loop! I am sure that would be a problem. I am also sure from reading halfcountplus's other posts (ranking number of occurances) that slurping the entire file is intentional (how else could this work?). However, if i got an error, i would be suspicious too.

Perhaps if you replace the "/" with a "\" (line 20)?


Comment on Re^2: regexp for directory
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2015-07-28 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls