Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Loop Break

by TomDLux (Vicar)
on Jan 19, 2012 at 18:33 UTC ( #948833=note: print w/ replies, xml ) Need Help??


in reply to Loop Break

There's enough up there about the correct use of glob() and of m{}.

I'd like to point out it's silly to glob on *.* and then ignore anything not matching *.c. Be more specific in the glob and you won't need the internal condition:

use 5.010; say for glob '*.c'; # or if you're doing more than using the filename once .. for my $file ( glob '*.c' ) { print $file, "\n"; lots_of_complicated_code( $file ); }

As Occam said: Entia non sunt multiplicanda praeter necessitatem.


Comment on Re: Loop Break
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2015-07-28 21:20 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 (259 votes), past polls