[ANNOUNCE] NWE.pm Hackday 19th November
Hello all you jolly people! Event Wax Sign-up:http://nwe.eventwax.com/hackday-2011 The North West England Perl Mongers will once again be holding a hackday in the month of November (Saturday 19th) and we invite all and sundry (or all and sundried) to attend either in person or via virtual presence using the aether and our channel. The event will start at 10.30-11.00 a.m. (GMT) in the physical location, but may start at any time in the aether. The event will once agin be hosted in a physical location at the Shadowcat Systems offices in Lancaster (UK) and all who attend that event will have access to a range of free snacks, beer and pizza. If you can only attend in a virtual manner we invite you to our chat chnanel, northwestengland.pm, on irc.perl.org where you will be warmly greeted. This year we'll be working on two projects! Presenting Perl [1] aims to make presentations from global Perl events available in one place, it's kinda like YouTube for Perl presentations IronMan [2] is intended to serve as a blog agregation service for all things Perl related providing a window into the Perl community and it's activities. Both projects have big and small tasks that are accessible to varying levels of experience, so don't feel that you can't contribute something! We're looking at design, documentation and code, any area needing work. If you are interested in attending in person, or wish to attend virtually then please use the Event Wax sign-up linked to at the top of this discourse. We hope that as many people as possible will join in on this day so that we can burn the code trails. Please contact Mark (mdk) or Ian (idn) for more information and I hope to talk to you in channel and see you, either physically or meta-physically on the day. Please feel free to distribute this information to as wide an audience as possible. This can include, mailing lists, groups or other interested parties. Thanks for your help. Other useful links: http://northwestengland.pm.org/ North West England Perl Mongers Homepage http://northwestengland.pm.org/meetings/2011/nov.html Meeting Information http://www.nwewiki.markkeating.me.uk/index.php?title=Main_Page NWE.PM Wiki [1]http://www.nwewiki.markkeating.me.uk/index.php?title=Projects/PresentingPerl/2011-hackday [2]http://www.nwewiki.markkeating.me.uk/index.php?title=Projects/IronMan/2011-hackday Ian (idn) Mark (mdk).
Re: london.pm Digest, Vol 70, Issue 36
Hey folks, I am resurrecting the old SNMP thread. I request mongers for some more help :p Here is the problem I have been facing. I see that in all the scripts where I use variables from MIBS I have to call these two lines before I can make use of SNMP variables instead of OIDs to call stuff. SNMP::initMib(); SNMP::loadModules('ALL'); However on other systems I noted that lines like the following worked without having to explicitly call the above two lines : my $vars = SNMP::VarList-new( [ 'sysUpTime', 0 ], [ 'sysDescr', 0 ] ); Is there a system configuration setting that I am missing that automatically load MIBs? whoever answers this, you have my eternal gratitude for answering this question cuz I am struggling :P thanks and cheers! -Shantanu
Re: london.pm Digest, Vol 70, Issue 36
Ohh I should probably add, my snmpwalk command doesn't work with string vars like sysDescr either, that too ask for OIDs. I know that people do it with Stringified variables. -Shan On Fri, Nov 4, 2011 at 3:58 PM, Shantanu Bhadoria shant...@cpan.org wrote: Hey folks, I am resurrecting the old SNMP thread. I request mongers for some more help :p Here is the problem I have been facing. I see that in all the scripts where I use variables from MIBS I have to call these two lines before I can make use of SNMP variables instead of OIDs to call stuff. SNMP::initMib(); SNMP::loadModules('ALL'); However on other systems I noted that lines like the following worked without having to explicitly call the above two lines : my $vars = SNMP::VarList-new( [ 'sysUpTime', 0 ], [ 'sysDescr', 0 ] ); Is there a system configuration setting that I am missing that automatically load MIBs? whoever answers this, you have my eternal gratitude for answering this question cuz I am struggling :P thanks and cheers! -Shantanu
Exiting eval via next [perl v5.14]
Why is this considered 'bad'? There's some confusion over whether or not this is new, or has just surface because we've started using use warnings FATAL = 'all'; in some modules at $employer. (I suspect it's been warning for some time and we've never noticed.) $ perl -M5.14.0 -wle 'for my $i (qw/foo/) { eval { next; $i.=q{} }; } say done' Exiting eval via next at -e line 1. done perl -M5.14.0 -wle 'for my $i (qw/foo/) { eval { next; }; } say done' Exiting eval via next at -e line 1. done # why no error?! $ perl -M5.14.0 -wle 'for my $i (qw/foo/) { eval { $i.=q{}; next; }; } say done' done What's the 'correct' way to exit the for loop? -- Chisel e: chi...@chizography.net w: http://chizography.net
Re: Exiting eval via next [perl v5.14]
# why no error?! $ perl -M5.14.0 -wle 'for my $i (qw/foo/) { eval { $i.=q{}; next; }; } say done' done Just a wild guess: There's an optimization that detects it's a no-op? -- Jerome Eteve. http://sigstp.blogspot.com/ http://twitter.com/jeteve
Re: Exiting eval via next [perl v5.14]
On Nov 4, 2011, at 11:36 , Chisel wrote: # why no error?! $ perl -M5.14.0 -wle 'for my $i (qw/foo/) { eval { $i.=q{}; next; }; } say done' done Because the next never happens, check $@ you will see Modification of a read-only value attempted Graham.
Re: Exiting eval via next [perl v5.14]
On 4 Nov 2011, at 20:16, Graham Barr wrote: On Nov 4, 2011, at 11:36 , Chisel wrote: # why no error?! $ perl -M5.14.0 -wle 'for my $i (qw/foo/) { eval { $i.=q{}; next; }; } say done' done Because the next never happens, check $@ you will see Modification of a read-only value attempted A more enlightening error would be nice. I find myself tempted to next in the $@ check. What's a good idiom for failing out of an eval then?
Re: Exiting eval via next [perl v5.14]
On Fri, Nov 4, 2011 at 14:49, Dave Hodgkinson daveh...@gmail.com wrote: A more enlightening error would be nice. Wait, what, you want a language with exceptions?? Madness