Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Loop Break

by toolic (Bishop)
on Jan 19, 2012 at 17:51 UTC ( #948824=note: print w/replies, xml ) Need Help??


in reply to Loop Break

Check to see if your code is what you thought it was, using B::Deparse (Tip #6 from the Basic debugging checklist) :
use File::Glob (); foreach $file (glob('*.*')) { if ($file =~ /\.c/) { $filename = $file; print /$filename\n/; } }
As Anon points out, you're really using m///

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948824]
help
Chatterbox?
[LanX]: interesting... a friedn of mine has the familyname "Hell" - I susally call her Hell Girl

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-12-12 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?