in reply to Re: read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
in thread read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
Thanks. It worked but now I need to change teh regex to search for <endnote id= in the input.txt file. I changed the IF statement to reflect the change but now I am getting the Use of uninitialized... error again.</P.
input.txt
<endnote id=(1)>Text...</endnote> <endnote id=(2)>Text...</endnote>
if ( $tag =~ m/<endnote id=/ ) { $tags{sprintf("%04d%6s",$1 || 999,$2)} = $tag; } else { warn "Failed to match: $tag" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
by choroba (Cardinal) on Oct 18, 2021 at 16:28 UTC | |
by VladP (Novice) on Oct 18, 2021 at 17:58 UTC | |
by haukex (Archbishop) on Oct 18, 2021 at 18:10 UTC | |
by afoken (Chancellor) on Oct 18, 2021 at 18:27 UTC | |
by bliako (Abbot) on Oct 18, 2021 at 18:45 UTC |