Click here to get back home

Annoying 'Variable ... will not stay shared' messages

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Annoying 'Variable ... will not stay shared' messages Erik J Pessers 01-20-2008
Posted by Erik J Pessers on January 20, 2008, 5:32 am
Please log in for more thread options
Dear all,

Is there a way to suppress messages that sometimes pop up on CPAN
modules when running as "perl -w"?
Example is the Net::Dev::Tools::Syslog' that produces messages like

t/01Modules....Variable "$_sock" will not stay shared at
/usr/local/share/perl/5.8.8/Net/Dev/Tools/Syslog.pm line 1757.
Variable "$_fwd_sock" will not stay shared at
/usr/local/share/perl/5.8.8/Net/Dev/Tools/Syslog.pm line 1758.

These are particularly annoying when using Test::... modules.

I tried something like

{ local $^W = 0; use Net::Dev::Tools::Syslog; $^W = 1;}

but that does not seem to produce the goodies: the messages
keep popping up.

Any suggestions on how to suppress these messages, notably when
using in the context of automated testing vua the Test::... methods?

TIA

Similar ThreadsPosted
CGI.pm annoying xhtml rendering April 11, 2006, 10:04 am
Invalid value for shared scalar June 14, 2005, 1:57 pm
Shared memory for data structures September 8, 2004, 11:13 am
extutils::MakeMaker trying to portability build a shared lib July 9, 2007, 4:36 pm
DBD::CSV problem: Execution ERROR: Cannot obtain shared lock November 15, 2004, 5:19 pm
DBD::Unify on AIX : error -59 unable to attach to shared memory. July 8, 2006, 11:24 pm
modulespath via environment-variable ? February 21, 2005, 2:19 am
Variable::Strongly::Typed 1.0.0 released September 2, 2005, 4:28 pm
Mod_perl conflict with PHP on HTTP_REFERER variable November 16, 2005, 6:04 pm
Parallel::ForkManager pass a variable to global scope? September 1, 2006, 2:44 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap