in reply to Support for hash comments on a line
use strict; while (<DATA>) { chomp; $_ = $` if /#/; print "$_\n" if $_; } __DATA__ ### Hello 99:88:77 100:11# This is a comment abc:def ### Comments also 999
--Jim
Update: shortenned conditional after chomp;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Support for hash comments on a line
by shotgunefx (Parson) on Nov 02, 2001 at 09:37 UTC | |
by blakem (Monsignor) on Nov 02, 2001 at 10:10 UTC |