On Jan 2, Booher Timothy B 1stLt AFRL/MNAC said: >First of all, why do I need to use defined(<MYFILE>) here is my code:
You don't. > next if $line =~ ((/^\*+/) or (/^\s*$/)); That isn't written properly. next if $line =~ /^\*+/ or $line =~ /^\s*$/; Although, the first regex can be simplified to /^\*/ instead... -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]