Tags:
create new tag
view all tags

SID-01610: mailnotify warning about usage of uninitialized value

Status: Answered Answered TWiki version: 5.1.3 Perl version: 5.014002 (linux)
Category: CategoryEmail Server OS: Linux 2.6.42-26-generic (x86_64-linux-gnu-thread-multi) Last update: 12 years ago

I get the following warning when I run mailnotify

 
Use of uninitialized value $_ in pattern match (m//) at
   /usr/share/perl/5.14/Net/Cmd.pm line 222 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined.  It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.
    
    To help you figure out what was undefined, perl will try to tell you the
    name of the variable (if any) that was undefined. In some cases it cannot
    do this, so it also tells you what operation you used the undefined value
    in.  Note, however, that perl optimizes your program and the operation
    displayed in the warning may not necessarily appear literally in your
    program.  For example, "that $foo" is usually optimized into "that "
    . $foo, and the warning will refer to the concatenation (.) operator,
    even though there is no . in your program.
    
[Mon Dec 17 12:01:02 2012] mailnotify: Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl/5.14/Net/Cmd.pm line 222.
Use of uninitialized value in join or string at /usr/share/perl/5.14/Net/Cmd.pm
   line 221 (#1)
[Mon Dec 17 12:01:02 2012] mailnotify: Use of uninitialized value in join or string at /usr/share/perl/5.14/Net/Cmd.pm line 221.
[Mon Dec 17 12:01:06 2012] mailnotify: Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl/5.14/Net/Cmd.pm line 222.
[Mon Dec 17 12:01:06 2012] mailnotify: Use of uninitialized value in join or string at /usr/share/perl/5.14/Net/Cmd.pm line 221.
[Mon Dec 17 12:01:08 2012] mailnotify: Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl/5.14/Net/Cmd.pm line 222.
[Mon Dec 17 12:01:08 2012] mailnotify: Use of uninitialized value in join or string at /usr/share/perl/5.14/Net/Cmd.pm line 221.
[Mon Dec 17 12:01:09 2012] mailnotify: Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl/5.14/Net/Cmd.pm line 222.
[Mon Dec 17 12:01:09 2012] mailnotify: Use of uninitialized value in join or string at /usr/share/perl/5.14/Net/Cmd.pm line 221.

-- LeoList - 2012-12-17

Discussion and Answer

Do you need any further info

Thanks

-- LeoList - 2012-12-19

Is there anything else I can do to supply better info?

Thanks

-- Leo List - 2013-01-09

I have no idea why this happens. This is likely in a module used when TWiki uses CPAN:Net::SMTP. What are the symptoms besides the warning?

-- Peter Thoeny - 2013-01-09

No other symptoms and the notifcations are going out ok. Just puzzling

-- Leo List - 2013-01-10

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- Peter Thoeny - 2013-03-05

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title mailnotify warning about usage of uninitialized value
SupportCategory CategoryEmail
TWiki version 5.1.3
Server OS Linux 2.6.42-26-generic (x86_64-linux-gnu-thread-multi)
Web server Apache/2.2.22 (Ubuntu)
Perl version 5.014002 (linux)
Browser & version Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2013-03-05 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.