SpritusMaximus has asked for the wisdom of the Perl Monks concerning the following question:
while (<INFILE>) { $CurrentLine = $_; $WordPos = 0; if ($Line =~ /\000/) { print "Found nulls at line $Line file position: "; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Looking for NULLS in a string
by dreadpiratepeter (Priest) on Sep 20, 2002 at 14:43 UTC | |
|
Re: Looking for NULLS in a string
by blokhead (Monsignor) on Sep 20, 2002 at 14:40 UTC | |
|
Re: Looking for NULLS in a string
by Zaxo (Archbishop) on Sep 20, 2002 at 16:12 UTC | |
|
Re: Looking for NULLS in a string
by zentara (Cardinal) on Sep 20, 2002 at 16:02 UTC |