Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: How can i debug compound map/grep statements just using print?

by karlgoethebier (Parson)
on Dec 02, 2012 at 00:03 UTC ( #1006660=note: print w/replies, xml ) Need Help??


in reply to Re^3: How can i debug compound map/grep statements just using print?
in thread How can i debug compound map/grep statements just using print?

"An equivalent search can be done using File::Find::Rule"

This is simply true, but what i wanted to do was this:

  • Not using File::Find
  • Not using File::Find::Rule"
  • Not using qx(find...[options])
  • Bothering myself with map/grep

Thank you very much for your advice and the insights you gave to me. Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

  • Comment on Re^4: How can i debug compound map/grep statements just using print?
  • Download Code

Replies are listed 'Best First'.
Re^5: How can i debug compound map/grep statements just using print?
by Kenosis (Priest) on Dec 02, 2012 at 01:55 UTC

    I really should have said that I wasn't suggesting a different or better way by using File::Find::Rule. Only used it to verify your results (like inter-rater reliability). Yours was a good map/grep piece.

    Nice update, by the way...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006660]
help
Chatterbox?
[Corion]: Discipulus: I have to admit that nowadays I either use Path::Class or use File::Find or simply File::Glob:: bsd_glob to read a directory, depending on how fancy my needs are
[shmem]: Discipulus: while (readdir DIR) works fine
[Discipulus]: Eataly vs World(coffe) ;=)
[Discipulus]: shemem i wrote it directly.. but when i tested it i got a lot of 'undefined value..'
[Corion]: Oh, poor Trump can't get a break. Even the Vatican only sends the second in command to greet him...
[shmem]: Discipulus: readdir has the same semantics as readline (a.k.a <>). Have another coffee ☕ ;-)
[Discipulus]: ah! just with my old system perl (5.8.8) was needed

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-05-26 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?