Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hi

When I run the code here basic implementation of a RTF->text converter, I get this output:
Use of uninitialized value in concatenation (.) or string at C:/Perl/s +ite/lib/RTF/Tokenizer.pm line 208, <GEN0> line 47. <-- how can I sup +press this warning? CM WEEKS/DAYS BPD HC AC Femur Length A regular fetal heart rate of ? b +eats per minute is seen. <-- expected outp +ut

How can I suppress the "uninitialized value" warning?
Why does the "no warnings 'uninitialized';" not work?

Do I need to edit "Tokenizer.pm" to suppress the warning? (Yuck!)
Or is there a better way?

I am running Active Perl 5.16.3

Thank you!

UPDATE: I forgot to say that I'm using the newest version of RTF::Tokenizer : version 1.13

UPDATE: I should have said that I am interested in a generic solution. The above is just the current annoyance ;)

In reply to How can I suppress 'uninitialized' warnings in a CPAN module? by zork42

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found