Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: A matter of style: how to perform a simple action based on a simple condition?

by TomDLux (Vicar)
on Sep 26, 2010 at 04:25 UTC ( #862046=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    LINE:
    while ( my $line = <config> ) {
    ...
           if $line =~ m{\a\s*\#}xms;
       # process line
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-29 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (192 votes), past polls