Re: Rookie Perl Question
- From: Tad McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 15:32:50 -0500
Eric R. Meyers <ermeyers@xxxxxxxxxxxx> wrote:
print if ( ! m/^[#]/ );
That is fine if you are trying to hide what the code does.
In case you might prefer maintainable code instead, then:
print unless /^#/;
--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.
- References:
- Rookie Perl Question
- From: swangdb
- Re: Rookie Perl Question
- From: Eric R. Meyers
- Rookie Perl Question
- Prev by Date: Re: Rookie Perl Question
- Previous by thread: Re: Rookie Perl Question
- Next by thread: Re: Rookie Perl Question
- Index(es):