DelphiFAQ Home Search:

Temporarily turn off warnings in perl (older version)

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

How can I turn off warnings for a part of my perl code? I read about a pragma use warnings and no warnings but this is not available because I use an older version of perl.

Answer:

Pragma 'warning' was introduced with perl 5.6.0
You can use the code shown below instead:

{
  # we have to turn off warnings for this one call
  local $^W = 0;

  # ..
  # offensive code now
  # ..

  # automatically restore warning settings as you leave the block
}

Comments:

2012-06-05, 21:31:22
anonymous from China  
<strong> http://www.coachout..strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong> http://www.myloveco..strong> <a href=' http://www.myloveco..g>Coach Outlet Online</strong></a><br />
<strong> http://www.buyincoa..strong> <a href=' http://www.buyincoa..g>Coach Outlet</strong></a><br />
<strong> http://www.cheapcoa..strong> <a href=' http://www.cheapcoa..g>Cheap Coach Handbags</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory Outlet</strong></a><br />
<strong> http://www.buycoach..strong> <a href=' http://www.buycoach..g>Coach Outlet Online</strong></a><br />
<strong>www.coachoutletonfactory.net</strong> <a href=' http://www.coachout..g>Coach Factory Outlet</strong></a><br />
<strong>www.coachoutletonline4you.us</strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong>coachfactoryoutletq.net</strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong>gotocoachoutlets.net</strong> <a href=' http://www.gotocoac..g>Coach Outlet Online</strong></a><br />
2012-08-10, 20:23:40
anonymous from United States  
Americans went from four down to ahead 42-32 with about 3 minutes left in the half. They later went up by 13 before taking a 48-40 lead into the locker <a href=' http://www.nikeshoe../'>Nike Air Max 90</a> versatility will overcome their size problems, and that's what happened in this one.Spain's size advantage was evident early, especially once Tyson Chandler, the only center on the U.S. roster, went to the bench <h1><a href=' http://www.nikeairm../'>Nike Air Max</a></h1>
The contract can't be signed until July 11, which is the first day new NBA contracts can be signed. It's also possible, one source said, <h1><a href=' http://www.nikesair..itle='Nike Air Max'>Nike Air Max</a></h1> by the Golden State Warriors, Lin’s hometown team, two weeks earlier. But it was the Rockets’ decision that indirectly sent Lin to New York, setting in motion a chain of events that would save the Knicks <a href=' http://www.christia..'Christian Louboutin Sale'>Christian Louboutin Sale</a> with two quick fouls. The Spanish pounded the ball inside to Ibaka, who accounted for three straight Spain baskets on dunks, and the Americans were forced to use a timeout -- that never happened 20 years ago when [url= http://www.monsterb..m/]Monster Beats Solo[/url] the Dream Team ruled Barcelona -- after Victor Sada's jumper made it 22-13 with 1:40 left in the opening period.But though Gasol and Ibaka had an obvious advantage inside, neither could deal with Anthony on the
2012-09-12, 20:20:18
anonymous from United States  
2012-09-14, 03:48:13
anonymous from Korea (R)  
[spammer 61.105.174.6]
2012-11-12, 02:04:05
anonymous from United Kingdom  

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: