in reply to Re: Re: Support for hash comments on a line
in thread Support for hash comments on a line
For example:substr($string, 0, $-[0])
#!/usr/bin/perl -wT use strict; while (<DATA>) { chomp; $_ = substr($_, 0, $-[0]) if /#/; print "$_\n" if $_; } __DATA__ ### Hello 99:88:77 100:11# This is a comment abc:def ### Comments also 999
-Blake
|
|---|