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

Re^2: Im not sure what this regex is called or how to write it

by misterperl (Beadle)
on Dec 18, 2012 at 14:36 UTC ( #1009381=note: print w/replies, xml ) Need Help??


in reply to Re: Im not sure what this regex is called or how to write it
in thread Im not sure what this regex is called or how to write it

>> There's nothing map can do that cannot be accomplished by a loop. Unless you are after one-liner bragging rights.... Sadly, my first programming language I learned, c 1977, was APL, and henceforth I was *conditioned* to believe anything over 1 line was excess.. My Bad!
  • Comment on Re^2: Im not sure what this regex is called or how to write it

Replies are listed 'Best First'.
Re^3: Im not sure what this regex is called or how to write it
by AnomalousMonk (Canon) on Dec 18, 2012 at 15:30 UTC
    ... first programming language I learned ... *conditioned* to believe ...

    Another example of the "Rubber Duckie Syndrome."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009381]
help
Chatterbox?
[1nickt]: thezip use Path::Tiny. @paths = path("/foo")-> children; (Excludes "." and ".." automatically.)
[1nickt]: (Also takes a compiled regexp as an arg to filter the list)
[1nickt]: For multiple dirs use iterator(): $it = path("/foo")-> iterator; while ( my $path = $it->() ) {...}
[1nickt]: (also skips . and .. automatically, and follows subdirs if you set <c\>recurse => 1</c>
[1nickt]: $it = path("/foo")-> iterator(recurse => 1 );

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2017-03-28 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (339 votes). Check out past polls.