perl.trainers http://www.nntp.perl.org/group/perl.trainers/ ... Copyright 1998-2016 perl.org Thu, 26 May 2016 07:27:46 +0000 ask@perl.org Re: RIP, Tad McClellan by Peter Scott I am very sad to hear this. I always enjoyed talking with Tad at <br/>conferences and looked forward to seeing him every time. I was <br/>disappointed that he didn&#39;t make it to any of the ones I was at for the <br/>last several years.<br/><br/>-- <br/>Peter Scott<br/><br/> http://www.nntp.perl.org/group/perl.trainers/2012/05/msg647.html Thu, 17 May 2012 21:39:21 +0000 RIP, Tad McClellan by merlyn <br/>Tad lost his battle with lung cancer last Sunday.<br/><br/>He had been with me at Stonehenge since 1999, and a contributor to<br/>comp.lang.perl.misc long before that.<br/><br/>Rest in peace, my friend.<br/><br/>http://www.legacy.com/obituaries/dfw/obituary.aspx?n=tad-jeffrey-mcclellan&amp;pid=157408300<br/><br/>-- <br/>Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095<br/>&lt;merlyn@stonehenge.com&gt; &lt;URL:http://www.stonehenge.com/merlyn/&gt;<br/>Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.<br/>See http://methodsandmessages.posterous.com/ for Smalltalk discussion<br/> http://www.nntp.perl.org/group/perl.trainers/2012/05/msg646.html Fri, 04 May 2012 07:11:42 +0000 Re: Looking for reliable and economical audio for webconference-based training by Michael R. Wolf Tim, <br/> <br/>Two semi-related data points... <br/> <br/>My partner Wendy has been pleasantly surprised with how well Skype works for her personal consulting business. Given that her work relies heavily on non-verbal communication, she was impressed with how well it worked. <br/> <br/>Another colleague, Rod, had a difference experience, though. He claimed that the &quot;vanilla&quot; videoconference services were merely OK for his remote pair-wise work with another colleague out of state. Once they both invested in better cameras, with better optical and compression quality, and in a separate service, he claims that the quality of their work relationship was as good as being in the same room. He points to the subtlty of facial expression that our animal body can sense but that our frontal lobes are not suited to describe. <br/> <br/>One way to connect these data points is to say &quot;to each her own&quot;. Another way would be that Rod, the technophile, had greater discernment, and therefore expectation, for a high definition experience, whereas Wendy, the person-ophile, had her expectations exceeded. <br/> <br/>Hope the stories help... <br/> <br/>Michael <br/> <br/>-- <br/>Please take note of the changes: <br/>New: Michael R. Wolf &lt;MichaelRWolf@att.net&gt; <br/>Old: Michael Running Wolf &lt;MichaelRunningWolf@att.net&gt; <br/> <br/> <br/> <br/>-- <br/>Michael R. Wolf <br/> All mammals learn by playing! <br/> MichaelRWolf@att.net <br/> <br/> <br/> <br/> http://www.nntp.perl.org/group/perl.trainers/2012/02/msg645.html Thu, 02 Feb 2012 13:55:35 +0000 Re: Looking for reliable and economical audio forwebconference-based training by Peter Scott On Mon, 30 Jan 2012 10:15:50 -0800, Tim Maher wrote:<br/>&gt; If this service is to be a new &quot;cost of business&quot; in this brave new<br/>&gt; virtual world, so be it, but I think I&#39;d prefer to buy pre-paid Verizon<br/>&gt; phone cards at Costco (close to 3 cents/minute) and provide their &quot;magic<br/>&gt; numbers&quot; to my (USA) customers as an alternative! (Maybe Peter Scott&#39;s<br/>&gt; Costco sells USA+Canada cards?)<br/><br/>I haven&#39;t seen them selling any phone cards, only a deal on Primus <br/>service... but I haven&#39;t looked...<br/><br/>&gt; Okay, that&#39;s the background. I hear you asking &quot;Is there a question<br/>&gt; here?&quot; The answer is YES!<br/>&gt; <br/>&gt; *) Would any of the trainers out there care to recommend the best<br/>&gt; webconferencing products that they&#39;ve used, and report on how they&#39;ve<br/>&gt; dealt with the Audio Quality issue?<br/><br/>The only platform I&#39;ve used recently other than point-to-point Skype was <br/>Vokle (once). Performed fine.<br/><br/>-- <br/>Peter Scott<br/>http://www.perlmedic.com/ http://www.perldebugged.com/<br/>http://www.informit.com/store/product.aspx?isbn=0137001274<br/>http://www.oreillyschool.com/certificates/perl-programming.php<br/> http://www.nntp.perl.org/group/perl.trainers/2012/01/msg644.html Tue, 31 Jan 2012 07:22:33 +0000 Looking for reliable and economical audio for webconference-based training by Tim Maher Fellow Trainers,<br/><br/>In the last year or so, I&#39;ve tried several major webconferencing<br/>platforms (e.g., Webex, Elluminate Live!), various &quot;me-too&quot; products<br/>(mostly open-source), and more recently some of the new upstarts<br/>(e.g., FUZE Meeting) in my training classes.<br/><br/>Naturally, all have good (and not so good) features. My biggest<br/>complaint is that, using VOIP, I can never get reliably fast and<br/>accurate audio with any of these products--even if my customers are in<br/>the same neighborhood!<br/><br/>I used to think these problems were due to the inevitable<br/>uncertainties and delays associated with UDP packet routing. Then I<br/>started using (free) Google Talk for most of my outgoing phone calls--<br/>on the same network that supports my webconferencing activities--and I<br/>noticed that this service is MUCH more reliable in providing short echo-<br/>latencies and fewer of those /really/ annoying &quot;catch-up&quot; incidents<br/>(where one hears a speeded-up version of delayed audio squeezed in<br/>before the impending arrival of the next segment--think &quot;Harold the<br/>Chipmunk&quot;).<br/><br/>(BTW, some vendors give a SKYPE option along with the VOIP option, but<br/>I haven&#39;t tested that; I suspect its behavior wouldn&#39;t be much<br/>different than VOIP. Comments?)<br/><br/>Of course, in cases where you&#39;re training employees of Corporation Z,<br/>you can just negotiate with them to let you use their phone lines<br/>instead of VOIP for audio, but I&#39;m looking for more general approaches<br/>that will work with homogeneous groups of students, which would seem<br/>to be most naturally handled at the training provider level (and<br/>rightly so).<br/><br/>Many of the vendors will rent you dedicated phone lines to bypass<br/>these audio troubles, but at 6 cents per minute or so (roughly $25 per<br/>student per 7 hour training day) that can get rather pricey.<br/><br/>If this service is to be a new &quot;cost of business&quot; in this brave new<br/>virtual world, so be it, but I think I&#39;d prefer to buy pre-paid<br/>Verizon phone cards at Costco (close to 3 cents/minute) and provide<br/>their &quot;magic numbers&quot; to my (USA) customers as an alternative! (Maybe<br/>Peter Scott&#39;s Costco sells USA+Canada cards?)<br/><br/>Okay, that&#39;s the background. I hear you asking &quot;Is there a question<br/>here?&quot; The answer is YES!<br/><br/>*) Would any of the trainers out there care to recommend the best<br/> webconferencing products that they&#39;ve used, and report on how<br/> they&#39;ve dealt with the Audio Quality issue?<br/><br/>-Tim<br/>P.S. FWIW, my /second/ biggest complaint is that almost all<br/> webconferencing vendors coyly state that &quot;Linux should also<br/> work (because its all Flash and Java)&quot; on their supported-OS<br/> pages, but take it from me, that is definitely not the case.<br/> 8-{ Sigh ...<br/><br/> *-----------------------------------------------------------------------*<br/> | Tim Maher, PhD (206) 781-UNIX http://www.consultix-inc.com |<br/> | tim at ( TeachMePerl, TeachMeLinux, or TeachMeUnix ) dot Com |<br/> *-----------------------------------------------------------------------*<br/> | ** INSTRUCTOR LED, HANDS-ON, INTERNET BASED, VIRTUAL CLASSES ** |<br/> *-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br/> | &gt; &quot;Minimal Perl for UNIX People&quot; has been an Amazon Best Seller! &lt; |<br/> | * Download chapters, read reviews, and order at: MinimalPerl.com * |<br/> *-----------------------------------------------------------------------*<br/> http://www.nntp.perl.org/group/perl.trainers/2012/01/msg643.html Mon, 30 Jan 2012 10:16:01 +0000 Re: good perl textbook for programming beginners by Steven Lembark On Fri, 19 Feb 2010 23:02:31 -0500<br/>&quot;Uri Guttman&quot; &lt;uri@StemSystems.com&gt; wrote:<br/><br/>&gt; elements of programming with perl<br/><br/>In stock at Amazon and OpAmp.<br/><br/>-- <br/>Steven Lembark 85-09 90th St.<br/>Workhorse Computing Woodhaven, NY, 11421<br/>lembark@wrkhors.com +1 888 359 3508<br/> http://www.nntp.perl.org/group/perl.trainers/2010/02/msg642.html Sat, 20 Feb 2010 06:45:25 +0000 Re: good perl textbook for programming beginners by Uri Guttman &gt;&gt;&gt;&gt;&gt; &quot;D&quot; == DavidB &lt;david.beddoe@gmail.com&gt; writes:<br/><br/> D&gt; Hi Perl Trainers, each Perl class I teach usually contains one or two<br/> D&gt; interested folks who have not spent much time learning about<br/> D&gt; programming. I want to suggest a textbook (not the Llama Book,<br/> D&gt; obviously) that can teach them about programming from the ground up<br/> D&gt; using Perl. What&#39;s the favored book for this purpose? I had been<br/> D&gt; suggesting Sams Teach Yourself Perl in 24 hours, which isn&#39;t<br/> D&gt; terrible.<br/><br/>the only book i have seen that actually teaches programming from scratch<br/>with perl is &#39;elements of programming with perl&#39;. it is out of print<br/>iirc but you can find used copies. it is pretty good. it uses diagrams<br/>to explain loops and flow control and all the code is perl. nothing else<br/>i have seen does perl for non-coders.<br/><br/>uri<br/><br/>-- <br/>Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --<br/>----- Perl Code Review , Architecture, Development, Training, Support ------<br/>--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------<br/> http://www.nntp.perl.org/group/perl.trainers/2010/02/msg641.html Fri, 19 Feb 2010 20:03:27 +0000 good perl textbook for programming beginners by DavidB Hi Perl Trainers, each Perl class I teach usually contains one or two<br/>interested folks who have not spent much time learning about<br/>programming. I want to suggest a textbook (not the Llama Book,<br/>obviously) that can teach them about programming from the ground up<br/>using Perl. What&#39;s the favored book for this purpose? I had been<br/>suggesting Sams Teach Yourself Perl in 24 hours, which isn&#39;t<br/>terrible.<br/><br/>Any suggestions?<br/><br/>thanks<br/><br/>David<br/><br/> http://www.nntp.perl.org/group/perl.trainers/2010/02/msg640.html Fri, 19 Feb 2010 10:18:13 +0000 Re: Editors or IDEs for training by Gabor Szabo On Tue, Dec 29, 2009 at 6:42 AM, Michael Running Wolf<br/>&lt;MichaelRunningWolf@att.net&gt; wrote:<br/>&gt;<br/>&gt; On Aug 18, 2008, at 7:31 AM, Gabor Szabo wrote:<br/>&gt;&gt;<br/>&gt;&gt; As you - the trainers - encounter such people quite often I wonder what do<br/>&gt;&gt; you currently use during training? What do you recommend to your students?<br/>&gt;<br/>&gt; I recommend whatever they&#39;re familiar with.<br/>&gt;<br/>...<br/>&gt; Hope this helps...<br/>&gt;<br/><br/><br/>Well, this was an almost 1.5 years old thread but it it interesting<br/>most of the people<br/>responding did not think it is a good idea at all.<br/><br/>Anyway since the original question Padre have made some progress<br/>so let me take this opportunity and ask around:<br/><br/>Have any of you tried Padre? Do you think it can provide you with<br/>something that<br/>will make teaching Perl easier? Making it stick better?<br/><br/>If you have tried it, are there things you think would further improve<br/>it for beginners/students?<br/><br/>regards<br/> Gabor<br/> http://padre.perlide.org/<br/> http://www.nntp.perl.org/group/perl.trainers/2009/12/msg639.html Mon, 28 Dec 2009 22:58:33 +0000 Re: Editors or IDEs for training by Michael Running Wolf <br/>On Aug 18, 2008, at 7:31 AM, Gabor Szabo wrote:<br/>&gt; As you - the trainers - encounter such people quite often I wonder <br/>&gt; what do<br/>&gt; you currently use during training? What do you recommend to your <br/>&gt; students?<br/><br/>I recommend whatever they&#39;re familiar with.<br/><br/>In the open enrollment classes I teach, we run SuSE, so the W32 folks <br/>occasionally don&#39;t know vi(1) or emacs(1).<br/><br/>So that we can focus on the language, not the tools or the IDE, I <br/>tell them that kate(1) is notepad-like enough that they can get by. <br/>That &quot;tool talk&quot; doesn&#39;t usually take more than 20 seconds. Since <br/>kate(1) has color hilighting, I&#39;ve got 90% of what I want from a <br/>beginner&#39;s editor -- the ability to notice unbalanced quotes easily so <br/>that they can focus on real syntax problems.<br/><br/>In 15+ years of teaching open enrollment and on-site classes, I can&#39;t <br/>remember a *language* class (Perl, JavaScript, HTML, Shell, C...) <br/>where the folks were returning to similar-enough environments and came <br/>in with similar-enough gaps that teaching a *tool* or *IDE* would have <br/>been more helpful than distracting.<br/><br/>Over the years I&#39;ve considered getting &quot;promo licenses&quot; from some <br/>language IDE&#39;s (ActiveState comes to mind) to distribute to students, <br/>figuring that it would help the company and the students and also <br/>&quot;Perl, the technology/culture/community&quot;. Given the TMTOWTDI-ness of <br/>the culture, I&#39;ve never pursued it, always figuring that I can&#39;t pick <br/>a *language* topic whose time budget I&#39;d sacrafice for *tool* time.<br/><br/>Hope this helps...<br/><br/>Michael Wolf<br/><br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.trainers/2009/12/msg638.html Mon, 28 Dec 2009 20:42:45 +0000 Re: Exception error in perl code by Jacinta Richardson Rajini Naidu wrote:<br/><br/>&gt; I have the following code in my program.<br/><br/>As I answered you back in May:<br/><br/>&quot;The purpose of this mailing list isn&#39;t to provide assistance to Perl <br/>students, but rather so that Perl trainers can share ideas about their <br/>training courses. ...<br/><br/>You may also find the perlmonks web forum (http://perlmonks.org/) to be <br/>a helpful place to seek further assistance.&quot;<br/><br/>PerlMonks is also a very good resource because of the sheer number of <br/>fantastic tutorials available there. If you need to learn anything (for <br/>example CGI programming) there&#39;s a lot of great starting points there.<br/><br/>Another venue you may find of value is your local Perl Mongers group. <br/>I&#39;m not sure where you&#39;re based, so perhaps you don&#39;t have one in your <br/>city, but usually Perl Mongers groups are open for non-locals to join <br/>to. (I&#39;m certainly a member of quite a few!) To find out what Perl <br/>Monger groups are near you check out the map and geographical categories <br/>at: http://www.pm.org/<br/><br/><br/>Regarding the problem you posted, you may want to look at Perl&#39;s time() <br/>and localtime() functions, as a quick glance seems that you&#39;re calling <br/>out to the system&#39;s date command and then trying to translate that.<br/><br/>You might also want to pay attention to the error you&#39;re getting:<br/><br/>&gt; Day &#39;0&#39; out of range 1..31 at <br/>&gt; /CLO/Tests/CTI/Scripts/drivers/lib/regressionDriver.pm line 405<br/><br/>for some reason, you&#39;re passing in a day value of 0.<br/><br/> J<br/> http://www.nntp.perl.org/group/perl.trainers/2009/06/msg637.html Sat, 20 Jun 2009 02:11:18 +0000 Re: CGI query by Peter Scott On Wed, 17 Jun 2009 16:44:55 +0530, Rajini Naidu wrote:<br/><br/>&gt; Hi ,<br/>&gt; <br/>&gt; I am new to CGI scripting.<br/><br/>This list is for Perl trainers. You would be better served posting to a <br/>group/list such as perl.beginners.cgi.<br/><br/>-- <br/>Peter Scott<br/>http://www.perlmedic.com/<br/>http://www.perldebugged.com/<br/>http://www.informit.com/store/product.aspx?isbn=0137001274<br/> http://www.nntp.perl.org/group/perl.trainers/2009/06/msg636.html Fri, 19 Jun 2009 21:13:29 +0000 Re: Exception error in perl code by Steven Lembark On Wed, 17 Jun 2009 09:42:46 +0530<br/>Rajini Naidu &lt;rajinidots@gmail.com&gt; wrote:<br/><br/>&gt; Hi,<br/>&gt; <br/>&gt; <br/>&gt; I have the following code in my program.<br/><br/>You would be better off sending this to a list about<br/>Perl troubleshooting. This list is for teachers.<br/><br/><br/><br/><br/>-- <br/>Steven Lembark 85-09 90th St.<br/>Workhorse Computing Woodhaven, NY, 11421<br/>lembark@wrkhors.com +1 888 359 3508<br/> http://www.nntp.perl.org/group/perl.trainers/2009/06/msg635.html Wed, 17 Jun 2009 04:21:00 +0000 CGI query by Rajini Naidu Hi ,<br/><br/>I am new to CGI scripting.<br/>I have a below query.<br/>I have one form say &quot;xyz&quot; with checkbox, where I am supposed to select<br/>certain options using these checkboxes.<br/><br/>I have another form say &quot;abc&quot; where I am required to display the selected<br/>options from form &quot;xyz&quot;.<br/><br/>I have one perl module which acts as interface between form &quot;xyz&quot; and &quot;abc&quot;.<br/>My query is how do I select the values which has been checked in form &quot;xyz&quot;<br/>and display in form &quot;abc&quot; using CGI scripting.<br/><br/>-Rajini http://www.nntp.perl.org/group/perl.trainers/2009/06/msg634.html Wed, 17 Jun 2009 04:15:07 +0000 Exception error in perl code by Rajini Naidu Hi,<br/><br/><br/>I have the following code in my program.<br/><br/>use strict;<br/>use warnings;<br/>use diagnostics;<br/>use Time::Local;<br/><br/>my @match_list;<br/>my $days1 = &quot;&quot;;<br/>my $days2 = &quot;&quot;;<br/>my $day = &quot;&quot;;<br/><br/><br/><br/>if ($failtag eq &quot;CompileErr&quot;) {<br/><br/>open my $pipe, &quot;-|&quot;, &quot;/usr/atria/bin/cleartool&quot;, &quot;desc&quot;,<br/>&quot;$include_path/$srcfile&quot; or die &quot;could not run cleartool: $!&quot;;<br/><br/>while (&lt;$pipe&gt;) {<br/><br/>next unless /created/;<br/><br/>my @rec = split;<br/><br/>push @match_list, substr $rec[1], 0, 9; }<br/>my $NOW=`date &quot;+%d-%b-%Y`;<br/>my $t = @match_list;<br/>$days1 = epoch_days(&quot;$NOW&quot;);<br/>$days2 = epoch_days(&quot;$t&quot;);<br/><br/>$day = $days1 - $days2;<br/><br/>if ($day &lt; 15)<br/><br/>{<br/><br/>$failtag = &quot;TestcaseDiff&quot;;<br/><br/>}<br/><br/>BEGIN {<br/><br/>my %month_num = do {<br/><br/>my $n = 0;<br/><br/>map(($_, $n++), qw/jan feb mar apr may jun jul aug sep oct nov dec/);<br/><br/>};<br/><br/>sub epoch_days {<br/><br/>my @dmy = split /-/, shift;<br/><br/>$dmy[1] = $month_num{lc $dmy[1]} || 0;<br/><br/>return timelocal(0, 0, 0, @dmy) / (24 * 60 * 60);<br/><br/>}<br/><br/>}<br/><br/>}<br/><br/>When I execute the program I am getting below exception error.<br/><br/>Line 405 in the program points to<br/><br/>&quot;return timelocal(0, 0, 0, @dmy) / (24 * 60 * 60);&quot;<br/><br/>Am I missing anything in code.<br/><br/>----------------------------------------------------------------------------------------------------------------<br/><br/>Uncaught exception from user code:<br/><br/>Day &#39;0&#39; out of range 1..31 at<br/>/CLO/Tests/CTI/Scripts/drivers/lib/regressionDriver.pm line 405<br/><br/>Time::Local::timegm called at /usr/local/lib/perl5/5.8.0/Time/Local.pm line<br/>120<br/><br/>Time::Local::timelocal(0,0,0,0,0) called at<br/>/CLO/Tests/CTI/Scripts/drivers/lib/regressionDriver.pm line 405<br/>----------------------------------------------------------------------------------------------------------------------<br/><br/>-Rajini http://www.nntp.perl.org/group/perl.trainers/2009/06/msg633.html Tue, 16 Jun 2009 21:12:56 +0000 Re: Perl query by Johan Vromans Rajini Naidu &lt;rajinidots@gmail.com&gt; writes:<br/><br/>&gt; Am i missing anything here. Please advise.<br/><br/>It often helps to specify:<br/><br/>- perl version<br/>- system you&#39;re running on<br/>- complete source<br/><br/>(If your source was complete, you&#39;re missing <br/><br/> use strict;<br/> use warnings;<br/><br/>in front of your program.)<br/><br/>-- Johan<br/> http://www.nntp.perl.org/group/perl.trainers/2009/06/msg632.html Mon, 08 Jun 2009 09:12:05 +0000 Re: Perl query by Michael Running Wolf <br/>On Jun 5, 2009, at 10:58 AM, Rajini Naidu wrote:<br/><br/>&gt; Hi,<br/>&gt;<br/>&gt; This is my code in perl.<br/>&gt;<br/>&gt; my $include = &quot;foo.1&quot;;<br/>&gt; my $ct = &quot;/usr/atria/bin/cleartool&quot;;<br/><br/>Try:<br/><br/>my $command = &quot;$ct desc $include&quot;;<br/>open my $pipe, &#39;-|&#39;, $command or die &quot;...&quot;;<br/><br/>You may be running into machine-dependent behavior of the LIST form of <br/>open (see perldoc -f open).<br/><br/>Just an idea. I haven&#39;t thought deeply about what the error message <br/>may mean.<br/><br/><br/><br/>-- <br/>Please take note of the changes:<br/> Old: Michael Running Wolf &lt;MichaelRunningWolf@att.net<br/> New: Michael R. Wolf &lt;MichaelRWolf@att.net<br/><br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.trainers/2009/06/msg631.html Fri, 05 Jun 2009 12:52:44 +0000 Perl query by Rajini Naidu Hi,<br/><br/>This is my code in perl.<br/><br/> my $include = &quot;foo.1&quot;;<br/> my $ct = &quot;/usr/atria/bin/cleartool&quot;;<br/><br/>open my $pipe, &quot;-|&quot;, $ct, &quot;desc&quot;, $include or die &quot;could not run cleartool:<br/>$!&quot;;<br/><br/>When i execute this , I am getting below error.<br/><br/> meaningless input.<br/><br/> Uncaught exception from user code:<br/> Illegal division by zero.<br/><br/>Is there any other way to represent below code in perl,<br/><br/>open my $pipe, &quot;-|&quot;, $ct, &quot;desc&quot;, $include or die &quot;could not run cleartool:<br/>$!&quot;;<br/><br/>Am i missing anything here. Please advise. http://www.nntp.perl.org/group/perl.trainers/2009/06/msg630.html Fri, 05 Jun 2009 10:58:33 +0000 Re: must_match perl module in opensource by Jacinta Richardson G&#39;day Rajini,<br/><br/>&gt; I am looking for must_match perl module in opensource.<br/>&gt; could you please point me to this module.<br/><br/>I&#39;m afraid I have no idea what the &quot;must_match&quot; Perl module would do. <br/>The usual way you&#39;d find open source Perl modules is to visit <br/>http://search.cpan.org/ and then put the module name (or even part of a <br/>name) into the search box and see what you get.<br/><br/>When I searched for &quot;must_match&quot;, I found the documetation for <br/>App::ZofCMS::PluginReference <br/>(http://search.cpan.org/perldoc?App::ZofCMS::PluginReference) because <br/>there is a method called must_match documented on that page, but I&#39;m not <br/>certain that that is what you&#39;re looking for.<br/><br/>The purpose of this mailing list isn&#39;t to provide assistance to Perl <br/>students, but rather so that Perl trainers can share ideas about their <br/>training courses. I don&#39;t think the others on this list will mind a lot <br/>if you take a bit of time to think carefully about what your question <br/>is; and ask it again. Preferably you&#39;d include what you think the <br/>module is called, what you think it does (giving about a paragraph of <br/>detail), perhaps how/when you came across it in the past, where you&#39;ve <br/>looked etc.<br/><br/>You may also find the perlmonks web forum (http://perlmonks.org/) to be <br/>a helpful place to seek further assistance.<br/><br/>All the best,<br/><br/> Jacinta<br/><br/><br/> http://www.nntp.perl.org/group/perl.trainers/2009/05/msg629.html Tue, 19 May 2009 08:03:04 +0000 must_match perl module in opensource by Rajini Naidu Hi,<br/><br/> I am looking for must_match perl module in opensource.<br/> could you please point me to this module.<br/><br/>-Rajini http://www.nntp.perl.org/group/perl.trainers/2009/05/msg628.html Tue, 19 May 2009 03:59:13 +0000 OpenSource Query by Rajini Naidu Hi,<br/><br/>In ActiveState perl there are two modules namely menu and prompt.<br/><br/>TO know more about these modules refer to :<br/><br/>*http://docs.activestate.com/activeperl/5.10/lib/ActiveState/Prompt.html*&lt;http://docs.activestate.com/activeperl/5.10/lib/ActiveState/Prompt.html&gt;<br/><br/>*http://docs.activestate.com/activeperl/5.10/lib/ActiveState/Menu.html*&lt;http://docs.activestate.com/activeperl/5.10/lib/ActiveState/Menu.html&gt;<br/><br/>These perl modules are missing in Opensource perl. I will have to write<br/><br/>similar modules in opensource also. Any help in this regard is appreciated.<br/><br/>-Rajini http://www.nntp.perl.org/group/perl.trainers/2009/05/msg627.html Mon, 18 May 2009 22:57:45 +0000 Re: syntax-highlighted Perl in Powerpoint 2008 by Uri Guttman &gt;&gt;&gt;&gt;&gt; &quot;DNB&quot; == David N Blank-Edelman &lt;dnb@ccs.neu.edu&gt; writes:<br/><br/> DNB&gt; Hi-<br/> DNB&gt; Not sure if this list is still active, but I&#39;m curious if anyone<br/> DNB&gt; has any tips/suggestions for ways to insert syntax-colored Perl code<br/> DNB&gt; into Powerpoint for greater legibility. I realize Powerpoint isn&#39;t<br/> DNB&gt; always the tool of choice, but if you use it and have a method you<br/> DNB&gt; like, can you let me know what it is?<br/><br/>i haven&#39;t tried this as i don&#39;t like syntax highlighting but it may do<br/>what you want. emacs has cperl-mode which does syntax coloring and there<br/>is an emacs command ps-print-buffer-with-faces which prints a buffer<br/>keeping the coloring (emacs calls those things &#39;faces&#39;). and then you<br/>would have a ps file (if you select a file instead of a printer for the<br/>output) which you could edit later on. or even convert it to some other<br/>format that you could edit more easily.<br/><br/>uri<br/><br/>-- <br/>Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --<br/>----- Perl Code Review , Architecture, Development, Training, Support ------<br/>--------- Free Perl Training --- http://perlhunter.com/college.html ---------<br/>--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------<br/> http://www.nntp.perl.org/group/perl.trainers/2009/05/msg626.html Sat, 02 May 2009 21:18:38 +0000 syntax-highlighted Perl in Powerpoint 2008 by David N. Blank-Edelman Hi-<br/> Not sure if this list is still active, but I&#39;m curious if anyone <br/>has any tips/suggestions for ways to insert syntax-colored Perl code <br/>into Powerpoint for greater legibility. I realize Powerpoint isn&#39;t <br/>always the tool of choice, but if you use it and have a method you <br/>like, can you let me know what it is?<br/><br/>As a related note, here&#39;s the best of what I&#39;ve tried (and why) so far <br/>and how it is failing:<br/><br/>One of my goals is to make it so the code is easily cut-and-paste-able <br/>from the PDF version of my slides participants will receive. I&#39;d also <br/>like to be able to edit the code in the slide by hand. This eliminates <br/>the method where you take a screenshot of some tool and paste the <br/>picture into the slide. The best thing I&#39;ve found is to use the (oh, <br/>the horror!) Python tool Pygments to color the code and render it into <br/>RTF, something like the following:<br/><br/>$ perltidy -st|pygmentize -f rtf -O style=perldoc -l perl |pbcopy<br/><br/>The thing that is driving me batty at the moment is if I paste the <br/>clipboard into TextEdit or even MSWord, the colors are faithfully <br/>preserved and the code looks great. If I Paste Special...RTF it into <br/>Powerpoint 2008, the result has different/incorrect colors and text <br/>styles for some reason (screen shot available upon request).<br/><br/>If anyone has any suggestions on an alternative method (or a way to <br/>fix this one), I&#39;d really appreciate it.<br/><br/> -- dNb<br/> http://www.nntp.perl.org/group/perl.trainers/2009/05/msg625.html Sat, 02 May 2009 20:17:45 +0000 Re: Syntax query by Brad Lhotsky system() returns the exit code of the commands you executed. In this<br/>case, your command was successful and thus your &quot;zero&quot; return.<br/><br/>http://tinyurl.com/chrdoo<br/><br/>If you&#39;re using Perl, you can do the processing that awk and grep are<br/>doing as well.<br/><br/>On Wed, Apr 15, 2009 at 06:50:01PM +0530, Rajini Naidu wrote:<br/>&gt; Hi,<br/>&gt; &nbsp;<br/>&gt; &nbsp;I am trying to execute the below line in the perl program and returns a<br/>&gt; value 0.<br/>&gt; &nbsp;<br/>&gt; my $test2 = &quot;&quot;;<br/>&gt; my $include =&nbsp; &quot;file&quot;;<br/>&gt; &nbsp;<br/>&gt; $test2 = system(&quot;/usr/atria/bin/cleartool desc \$include | grep created |<br/>&gt; awk -F\&quot; \&quot; \&#39;{print \$2}\&#39; | cut -b 1-9 &quot;);<br/>&gt; &nbsp;<br/>&gt; The value returned by $test2 is 0. I suspect grep and awk commands are not<br/>&gt; getting executed.<br/>&gt; Is there any thing wrong in the syntax ????<br/>&gt; &nbsp;<br/>&gt; -Rajini&nbsp;<br/>&gt; &nbsp;<br/>&gt; &nbsp;<br/><br/>-- <br/>Brad Lhotsky<br/> http://www.nntp.perl.org/group/perl.trainers/2009/04/msg624.html Wed, 15 Apr 2009 06:38:28 +0000 Re: Syntax query by Simon Andrews <br/>On 15 Apr 2009, at 14:20, Rajini Naidu wrote:<br/><br/>&gt; Hi,<br/>&gt;<br/>&gt; I am trying to execute the below line in the perl program and <br/>&gt; returns a value 0.<br/>&gt;<br/>&gt; my $test2 = &quot;&quot;;<br/>&gt; my $include = &quot;file&quot;;<br/>&gt;<br/>&gt; $test2 = system(&quot;/usr/atria/bin/cleartool desc \$include | grep <br/>&gt; created | awk -F\&quot; \&quot; \&#39;{print \$2}\&#39; | cut -b 1-9 &quot;);<br/>&gt;<br/>&gt; The value returned by $test2 is 0. I suspect grep and awk commands <br/>&gt; are not getting executed.<br/><br/>I think you&#39;re misunderstanding what the system function does. This <br/>will run the command you specify but doesn&#39;t allow you to capture the <br/>output from the command. System returns the exit status of the <br/>command you ran, and an exit status of 0 would mean that the command <br/>completed successfully.<br/><br/>If you want to capture the output from the command then you probably <br/>want to use backticks:<br/><br/>my $test2 = `/usr/atria/bin/cleartool desc \$include | grep created | <br/>awk -F\&quot; \&quot; \&#39;{print \$2}\&#39; | cut -b 1-9`;<br/><br/>This will take the output from the command and assign it to $test2.<br/><br/>Hope this helps<br/><br/>Simon.<br/><br/>-- <br/>Simon Andrews PhD<br/>Babraham Bioinformatics<br/>www.bioinformatics.bbsrc.ac.uk<br/>simon.andrews@bbsrc.ac.uk<br/>+44 (0) 1223 496463<br/><br/><br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.trainers/2009/04/msg623.html Wed, 15 Apr 2009 06:35:37 +0000 Syntax query by Rajini Naidu Hi,<br/><br/> I am trying to execute the below line in the perl program and returns a<br/>value 0.<br/><br/>my $test2 = &quot;&quot;;<br/>my $include = &quot;file&quot;;<br/><br/>$test2 = system(&quot;/usr/atria/bin/cleartool desc \$include | grep created |<br/>awk -F\&quot; \&quot; \&#39;{print \$2}\&#39; | cut -b 1-9 &quot;);<br/><br/>The value returned by $test2 is 0. I suspect grep and awk commands are not<br/>getting executed.<br/>Is there any thing wrong in the syntax ????<br/><br/>-Rajini http://www.nntp.perl.org/group/perl.trainers/2009/04/msg622.html Wed, 15 Apr 2009 06:20:08 +0000 Require help in perl by Rajini Naidu Hi,<br/><br/>Context :<br/><br/>I am working on displaying load graph for all the days.<br/><br/> I require a perl module which displays,<br/><br/>all the days of the week and when I click<br/><br/>On the particular day, it should go to the<br/><br/>particular load graph.<br/><br/>Any help is much appreciated.<br/><br/>-Rajini http://www.nntp.perl.org/group/perl.trainers/2009/03/msg621.html Mon, 23 Mar 2009 21:04:03 +0000 Re: Query in Perl Programming by Jacinta Richardson S, Rajini (STSD) wrote:<br/>&gt; Thanks Jacinta. <br/>&gt; <br/>&gt; I could find date formatter that represents date in various <br/>&gt; Fomarts. <br/>&gt; <br/>&gt; Is there a date Converter which converts the date, <br/>&gt; <br/>&gt; Eg : given date 27-Jan-09, to be converted to 27.01.2009.<br/><br/>I&#39;d suggest looking at Date::Parse, and strftime from the POSIX module. <br/> strftime gets my vote for the least well documented function in the <br/>Perl core module libraries (although this may be because I haven&#39;t <br/>studied all of the functions available). If you don&#39;t have a Unix <br/>system available, or a copy of the ANSI C standard, then you may find <br/>the following page helpful to build your format string:<br/><br/> http://opengroup.org/onlinepubs/007908799/xsh/strftime.html<br/><br/>for example, assuming that @dateparts contains the correct elements, <br/>then you could convert as follows:<br/><br/> use POSIX qw(strftime);<br/><br/> my $new_date = strftime(&quot;%d.%m.%Y&quot;, @dateparts);<br/><br/> # $new_date is now in the correct format.<br/><br/>Do read the documentation for strftime though ( <br/>http://perldoc.perl.org/POSIX.html#FUNCTIONS ) because there may be <br/>format strings on the above mentioned page that are not portable.<br/><br/><br/>Generally one would pass the results of calling localtime() to strftime eg:<br/><br/> # The current time in dd.mm.yyyy format:<br/> use POSIX qw(strftime);<br/><br/> print strftime(&quot;%d.%m.%Y&quot;, localtime());<br/><br/>If Date::Parse can&#39;t help you build this array, then you might want to <br/>have a look at Date::Manip. Be aware that Date::Manip is much bigger <br/>and slower than the purpose built modules.<br/><br/>All the best,<br/><br/> Jacinta<br/><br/> http://www.nntp.perl.org/group/perl.trainers/2009/01/msg620.html Wed, 28 Jan 2009 05:12:34 +0000 RE: Query in Perl Programming by S, Rajini Thanks Jacinta. <br/> <br/>I could find date formatter that represents date in various <br/>Fomarts. <br/> <br/>Is there a date Converter which converts the date, <br/> <br/>Eg : given date 27-Jan-09, to be converted to 27.01.2009. <br/> <br/>-Rajini <br/> <br/> <br/> <br/> <br/> <br/> <br/>&gt;-----Original Message----- <br/>&gt;From: Jacinta Richardson [mailto:jarich@perltraining.com.au] <br/>&gt;Sent: Wednesday, January 28, 2009 7:14 AM <br/>&gt;To: S, Rajini (STSD) <br/>&gt;Cc: perl-trainers@perl.org <br/>&gt;Subject: Re: Query in Perl Programming <br/>&gt; <br/>&gt;G&#39;day Rajini, <br/>&gt; <br/>&gt;S, Rajini (STSD) wrote: <br/>&gt; <br/>&gt;&gt; I am new to Perl Programming and have a query in perl. <br/>&gt;&gt; <br/>&gt;&gt; In perl is there any system defined functions to find out <br/>&gt;the Differences in dates. <br/>&gt;&gt; <br/>&gt;&gt; Eg : <br/>&gt;&gt; <br/>&gt;&gt; Date 1 -&gt; 26-Jan-2009 <br/>&gt;&gt; Date 2 -&gt; 14-Jan-2009 <br/>&gt;&gt; <br/>&gt;&gt; So the difference between two dates is 12 days. <br/>&gt; <br/>&gt;There aren&#39;t any Perl built-in functions to do this. <br/>&gt;Fortunately there are a whole range of Date modules on CPAN <br/>&gt;that might be suitable for your needs. You will need to <br/>&gt;install whichever one(s) you choose on your system if they are <br/>&gt;not already there. There is an answer to how to find out what <br/>&gt;is installed on your system if you do: <br/>&gt; <br/>&gt; perldoc -q installed <br/>&gt; <br/>&gt;So, to find out what Date modules exist you&#39;d search CPAN: <br/>&gt; <br/>&gt; http://search.cpan.org/search?query=date&amp;mode=all <br/>&gt; <br/>&gt;In particular I&#39;d suggest looking at Date::Simple <br/>&gt; <br/>&gt; <br/>&gt; #!/usr/bin/perl -w <br/>&gt; use strict; <br/>&gt; use Date::Simple qw(date); <br/>&gt; <br/>&gt; # Difference in days between two dates: <br/>&gt; my $diff = date(&#39;2001-08-27&#39;) - date(&#39;1977-10-05&#39;); <br/>&gt; <br/>&gt;If you need to convert from your date format &#39;26-Jan-2009&#39; to <br/>&gt;the format that Date::Simple will accept then you might want <br/>&gt;to look at the Date::Parse module as well. <br/>&gt; <br/>&gt;There are other Date modules that might be better suited, and <br/>&gt;I encourage you to look at them too. <br/>&gt; <br/>&gt;All the best, <br/>&gt; <br/>&gt; Jacinta <br/>&gt; <br/>&gt;-- <br/>&gt; (&quot;`-&#39;&#39;-/&quot;).___..--&#39;&#39;&quot;`-._ | Jacinta Richardson | <br/>&gt; `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | <br/>&gt; (_Y_.)&#39; ._ ) `._ `. ``-..-&#39; | +61 3 9354 6001 | <br/>&gt; _..`--&#39;_..-_/ /--&#39;_.&#39; ,&#39; | contact@perltraining.com.au | <br/>&gt; (il),-&#39;&#39; (li),&#39; ((!.-&#39; | www.perltraining.com.au | <br/>&gt; http://www.nntp.perl.org/group/perl.trainers/2009/01/msg619.html Wed, 28 Jan 2009 03:13:08 +0000 Re: Query in Perl Programming by Jacinta Richardson G&#39;day Rajini,<br/><br/>S, Rajini (STSD) wrote:<br/><br/>&gt; I am new to Perl Programming and have a query in perl. <br/>&gt; <br/>&gt; In perl is there any system defined functions to find out the Differences in dates. <br/>&gt; <br/>&gt; Eg : <br/>&gt; <br/>&gt; Date 1 -&gt; 26-Jan-2009<br/>&gt; Date 2 -&gt; 14-Jan-2009 <br/>&gt; <br/>&gt; So the difference between two dates is 12 days. <br/><br/>There aren&#39;t any Perl built-in functions to do this. Fortunately there are a<br/>whole range of Date modules on CPAN that might be suitable for your needs. You<br/>will need to install whichever one(s) you choose on your system if they are not<br/>already there. There is an answer to how to find out what is installed on your<br/>system if you do:<br/><br/> perldoc -q installed<br/><br/>So, to find out what Date modules exist you&#39;d search CPAN:<br/><br/> http://search.cpan.org/search?query=date&amp;mode=all<br/><br/>In particular I&#39;d suggest looking at Date::Simple<br/><br/><br/> #!/usr/bin/perl -w<br/> use strict;<br/> use Date::Simple qw(date);<br/><br/> # Difference in days between two dates:<br/> my $diff = date(&#39;2001-08-27&#39;) - date(&#39;1977-10-05&#39;);<br/><br/>If you need to convert from your date format &#39;26-Jan-2009&#39; to the format that<br/>Date::Simple will accept then you might want to look at the Date::Parse module<br/>as well.<br/><br/>There are other Date modules that might be better suited, and I encourage you to<br/>look at them too.<br/><br/>All the best,<br/><br/> Jacinta<br/><br/>-- <br/> (&quot;`-&#39;&#39;-/&quot;).___..--&#39;&#39;&quot;`-._ | Jacinta Richardson |<br/> `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |<br/> (_Y_.)&#39; ._ ) `._ `. ``-..-&#39; | +61 3 9354 6001 |<br/> _..`--&#39;_..-_/ /--&#39;_.&#39; ,&#39; | contact@perltraining.com.au |<br/> (il),-&#39;&#39; (li),&#39; ((!.-&#39; | www.perltraining.com.au |<br/> http://www.nntp.perl.org/group/perl.trainers/2009/01/msg618.html Tue, 27 Jan 2009 17:45:16 +0000 Re: Query in Perl Programming by Tim Maher Hi Rajini,<br/><br/>Please go to cpan.org and search for Perl modules that have &quot;date&quot;<br/>in their names; you&#39;ll find several that will do what you ask.<br/>*----------------------------------------------------------------------*<br/>| Tim Maher, PhD (206) 781-UNIX http://www.consultix-inc.com |<br/>| tim at ( TeachMePerl, TeachMeLinux, or TeachMeUnix ) dot Com |<br/>*-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-<br/>| &gt; &quot;Minimal Perl for UNIX People&quot; has been an Amazon Best Seller! &lt; |<br/>| * Download chapters, read reviews, and order at: MinimalPerl.com * |<br/>*----------------------------------------------------------------------*<br/><br/>On Tue, Jan 27, 2009 at 05:54:17AM +0000, S, Rajini (STSD) wrote:<br/>&gt; <br/>&gt; <br/>&gt; Hi, <br/>&gt; <br/>&gt; I am new to Perl Programming and have a query in perl. <br/>&gt; <br/>&gt; In perl is there any system defined functions to find out the Differences in dates. <br/>&gt; <br/>&gt; Eg : <br/>&gt; <br/>&gt; Date 1 -&gt; 26-Jan-2009<br/>&gt; Date 2 -&gt; 14-Jan-2009 <br/>&gt; <br/>&gt; So the difference between two dates is 12 days. <br/>&gt; <br/>&gt; Is there a way to achieve this with any system defined functions In Perl ????<br/>&gt; <br/>&gt; <br/>&gt; -Rajini<br/>&gt; <br/> http://www.nntp.perl.org/group/perl.trainers/2009/01/msg617.html Mon, 26 Jan 2009 23:17:50 +0000 Query in Perl Programming by S, Rajini <br/> <br/>Hi, <br/> <br/>I am new to Perl Programming and have a query in perl. <br/> <br/>In perl is there any system defined functions to find out the Differences in dates. <br/> <br/>Eg : <br/> <br/>Date 1 -&gt; 26-Jan-2009 <br/>Date 2 -&gt; 14-Jan-2009 <br/> <br/>So the difference between two dates is 12 days. <br/> <br/>Is there a way to achieve this with any system defined functions In Perl ???? <br/> <br/> <br/>-Rajini <br/> <br/> <br/> http://www.nntp.perl.org/group/perl.trainers/2009/01/msg616.html Mon, 26 Jan 2009 21:55:18 +0000 Re: Explaining why to use $array[0] instead of @array[0] by Paul Fenwick G&#39;day David,<br/><br/>DavidB wrote:<br/>&gt; Hi, I can think of some reasons we use $ instead of @ for array<br/>&gt; indices (in Perl5):<br/><br/>My usual explanation goes a little like this:<br/><br/>In Perl, $ is pronounced &#39;the&#39; or &#39;a&#39; or &#39;this&#39; (ie, singular):<br/><br/> $name # The name<br/> $friend[0] # The first friend<br/> $colour_of{grass} # The colour of grass<br/> $ref-&gt;{$key} # The value $key using this reference.<br/><br/>On the other hand, @ means &#39;these&#39; or &#39;those&#39;:<br/><br/> @friend # These friends<br/> @friend[0..3] # These four friends<br/><br/>When we write an @ sign when trying to retrieve a single element, we&#39;re<br/>really asking Perl for a list of elements. If what we really want back is<br/>just a single element, then Perl can get confused.<br/><br/>I don&#39;t actually show the cases where Perl gets it wrong, instead I mention<br/>that Perl:<br/><br/> (a) Will warn you if it figures out that you wanted a scalar when<br/> you asked for a list.<br/><br/> (b) Will *not* warn you when it decides you actually meant a list<br/> of one element. This means debugging your code will be a<br/> painful experience, because Perl won&#39;t help you.<br/><br/>Hence the result of using @ incorrectly is almost always a warning or a<br/>hard-to-find bug, both of which are extremely undesirable.<br/><br/>Cheerio,<br/><br/> Paul<br/><br/>-- <br/>Paul Fenwick &lt;pjf@perltraining.com.au&gt; | http://perltraining.com.au/<br/>Director of Training | Ph: +61 3 9354 6001<br/>Perl Training Australia | Fax: +61 3 9354 2681<br/> http://www.nntp.perl.org/group/perl.trainers/2008/10/msg615.html Tue, 21 Oct 2008 21:24:03 +0000 Re: Explaining why to use $array[0] instead of @array[0] by Jacinta Richardson DavidB wrote:<br/><br/>&gt; I&#39;m talking demonstrable reason, not any &quot;just because it&#39;s proper&quot;<br/>&gt; reasons like 1 and 2 above. I can talk their ears off telling them<br/>&gt; it&#39;s the right thing to do, but I&#39;d prefer to have some practical<br/>&gt; reason.<br/><br/>We provide some of these in our Perl Tip: Common problems with slices<br/>http://perltraining.com.au/tips/2005-09-05.html<br/><br/>Some examples from that tip:<br/><br/> @data[1] = &lt;STDIN&gt;; # Almost certainly a mistake<br/><br/> my @array = ( &#39;a&#39; .. &#39;e&#39; );<br/> @array[@array] = &#39;f&#39;; # Does not generate a warning!<br/><br/>All the best,<br/><br/> J<br/><br/><br/>-- <br/> (&quot;`-&#39;&#39;-/&quot;).___..--&#39;&#39;&quot;`-._ | Jacinta Richardson |<br/> `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |<br/> (_Y_.)&#39; ._ ) `._ `. ``-..-&#39; | +61 3 9354 6001 |<br/> _..`--&#39;_..-_/ /--&#39;_.&#39; ,&#39; | contact@perltraining.com.au |<br/> (il),-&#39;&#39; (li),&#39; ((!.-&#39; | www.perltraining.com.au |<br/> http://www.nntp.perl.org/group/perl.trainers/2008/10/msg614.html Tue, 21 Oct 2008 17:23:47 +0000 Explaining why to use $array[0] instead of @array[0] by DavidB Hi, I can think of some reasons we use $ instead of @ for array<br/>indices (in Perl5):<br/><br/> 1. because we are referring to a scalar, not an array slice, and<br/>it&#39;s misleading to use @<br/> 2. because it&#39;s common usage and all professional code uses it<br/> 3. because @array[0] may in some selected cases be treated as a<br/>list, for example @array[0] = @array2 (copies first element) vs.<br/>$array[0] = @array2 (copies number of elements)<br/><br/>however, aside from the extremely limited-application code example in<br/>3. above, I was unable to come up with a practical justification for<br/>using @.<br/><br/>I&#39;m talking demonstrable reason, not any &quot;just because it&#39;s proper&quot;<br/>reasons like 1 and 2 above. I can talk their ears off telling them<br/>it&#39;s the right thing to do, but I&#39;d prefer to have some practical<br/>reason.<br/><br/>thanks!<br/><br/>David<br/><br/><br/> http://www.nntp.perl.org/group/perl.trainers/2008/10/msg613.html Tue, 21 Oct 2008 15:24:58 +0000 Re: Editors or IDEs for training by Peter Scott On Mon, 18 Aug 2008 17:31:16 +0300, Gabor Szabo wrote:<br/>&gt; As you - the trainers - encounter such people quite often I wonder what do<br/>&gt; you currently use during training? What do you recommend to your students?<br/><br/>People who are already using something will use that same thing come hell<br/>or high water :-) I like vim on Windows and emacs on *nix for the syntax<br/>highlighting and suggest either of them, but I cannot afford to take time<br/>in a class showing people how to use a tool as opposed to learning the<br/>language. I need the shortest path to getting them editing a program, and<br/>that&#39;s usually what they&#39;re already using. Notepad if necessary.<br/><br/>I&#39;m referring to hands-on classes of course. Lecturing is different.<br/><br/>-- <br/>Peter Scott<br/>http://www.perlmedic.com/<br/>http://www.perldebugged.com/<br/><br/> http://www.nntp.perl.org/group/perl.trainers/2008/08/msg612.html Wed, 20 Aug 2008 08:07:45 +0000 Re: Editors or IDEs for training by Johan Vromans &quot;Gabor Szabo&quot; &lt;szabgab@gmail.com&gt; writes:<br/><br/>&gt; So I have a new little project called Padre to become an IDE for<br/>&gt; Perl.<br/><br/>Although I extremely appreciate your work (and I&#39;m very impressed by<br/>the results you got in such a short time) I personally would take one<br/>of the existing (pluggable, flexible, extendible) IDEs and add good<br/>Perl support to it.<br/><br/>My current choice would be to use Eclipse with EPIC. And if EPIC does<br/>not do what we want/need, to put energy in EPIC.<br/><br/>&gt; The immediate response of most of them was that they don&#39;t need any<br/>&gt; IDE as they are ok with vi or emacs.<br/><br/>There&#39;s a big difference between seasoned perl developers, and people<br/>that are taking their first course on Perl... The first group knows<br/>how to use their tools, the second often doesn&#39;t.<br/><br/>-- Johan<br/> http://www.nntp.perl.org/group/perl.trainers/2008/08/msg611.html Tue, 19 Aug 2008 00:39:04 +0000 Re: Editors or IDEs for training by Jacinta Richardson Gabor Szabo wrote:<br/><br/>&gt; So I have a new little project called Padre to become an IDE for Perl.<br/><br/>Excellent!<br/><br/>&gt; As you - the trainers - encounter such people quite often I wonder what do<br/>&gt; you currently use during training? What do you recommend to your students?<br/><br/>For our general enrolment courses we usually have windows on the desktop and a<br/>linux server. Those who will be primarily using windows, use Perl on that and<br/>we provide them with PerlEdit[1]. Everyone else sshes into the server and uses<br/>vim (almost exclusively)[2] or emacs (occasionally) or nano (extremely rarely).<br/><br/>[1] PerlEdit: http://www.indigostar.com/perledit.html It&#39;s free enough, easy to<br/>install, very easy to use, has some neat Perl features (syntax highlighting,<br/>perldoc lookup, inline error feedback). We&#39;ll swap it for something else that<br/>was more free, as easy to install and use, as soon when we find out about such.<br/><br/>[2] Sometimes they think they&#39;re using vi, but they&#39;re not.<br/><br/>All the best,<br/><br/> Jacinta<br/><br/>-- <br/> (&quot;`-&#39;&#39;-/&quot;).___..--&#39;&#39;&quot;`-._ | Jacinta Richardson |<br/> `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |<br/> (_Y_.)&#39; ._ ) `._ `. ``-..-&#39; | +61 3 9354 6001 |<br/> _..`--&#39;_..-_/ /--&#39;_.&#39; ,&#39; | contact@perltraining.com.au |<br/> (il),-&#39;&#39; (li),&#39; ((!.-&#39; | www.perltraining.com.au |<br/> http://www.nntp.perl.org/group/perl.trainers/2008/08/msg610.html Mon, 18 Aug 2008 17:22:59 +0000 Re: Editors or IDEs for training by Sean Quinlan I&#39;ll take a look at your project, but to be honest I wouldn&#39;t want to<br/>&#39;use&#39; an IDE for training. I&#39;m teaching Perl, not how to use a<br/>programming tool. Personally I&#39;ve been using Komodo Edit lately and been<br/>quite happy with the most recent version.<br/><br/>For me there is only one item that is critically important for a class<br/>though, and that is that whatever editor/IDE used in a workshop have<br/>solid syntax highlighting support (well, as well as the usual<br/>cut/copy/paste/undo etc. ;). Generally selecting an editor is part of<br/>working with the IT staff at the location where I&#39;ll run the workshop.<br/>If there is one that the organization has &#39;standardized&#39; on I&#39;ll use<br/>that, and if not I&#39;ll suggest one or two appropriate to the platform.<br/>When the workshop starts I then tell the students that if they have<br/>access to an editor they like better they should feel free to use that<br/>instead.<br/><br/>HTH,<br/>Sean<br/><br/>On Mon, 2008-08-18 at 17:31 +0300, Gabor Szabo wrote:<br/>&gt; Hi ppl,<br/>&gt; <br/>&gt; So I have a new little project called Padre to become an IDE for Perl.<br/>&gt; <br/>&gt; I talked about it with quite a lot of people on YAPC::EU.<br/>&gt; The immediate response of most of them was that they don&#39;t need any IDE<br/>&gt; as they are ok with vi or emacs.<br/>&gt; After some more explaining they did like some of the ideas but mostly they<br/>&gt; agreed that the main target might be people with little or no Perl background,<br/>&gt; especially from the Windows world.<br/>&gt; <br/>&gt; As you - the trainers - encounter such people quite often I wonder what do<br/>&gt; you currently use during training? What do you recommend to your students?<br/>&gt; <br/>&gt; I for one usually cannot give them vi or emacs as they don&#39;t know<br/>&gt; either of those.<br/>&gt; In my classes they are usually using Notepad++.<br/>&gt; <br/>&gt; <br/>&gt; If you can imagine something that is better than what you have now,<br/>&gt; what would that be? What do you feel is missing from the current environment<br/>&gt; of your students?<br/>&gt; <br/>&gt; <br/>&gt; If you would like to check out the project, its web site is<br/>&gt; <br/>&gt; http://padre.perlide.org/<br/>&gt; <br/>&gt; but you can install if from CPAN directly as well.<br/>&gt; <br/>&gt; <br/>&gt; regards<br/>&gt; Gabor<br/>&gt; <br/>&gt; <br/>-- <br/>Sean Quinlan &lt;sean@quinlan.org&gt;<br/><br/> http://www.nntp.perl.org/group/perl.trainers/2008/08/msg609.html Mon, 18 Aug 2008 12:48:13 +0000 Re: Editors or IDEs for training by Smylers Gabor Szabo writes:<br/><br/>&gt; As you - the trainers - encounter such people quite often I wonder<br/>&gt; what do you currently use during training?<br/><br/>My current job doesn&#39;t involve training, but previously we did public<br/>training on Linux (Gnome), and installed every editor we could find in<br/>Debian.<br/><br/>Most users ran Vim out of choice; some preferred one of the Emacsen or<br/>even Pico/Nano (which we definitely didn&#39;t recommend). For users not<br/>already familiar with a Unix editor we suggested GEdit or Kate.<br/><br/>&gt; What do you recommend to your students?<br/>&gt; <br/>&gt; I for one usually cannot give them vi or emacs as they don&#39;t know<br/>&gt; either of those.<br/><br/>It&#39;s less of a problem when delivering in-house training. Some<br/>companies have standardized on a particular editor; others let<br/>individual developers choose. At Microsoft (where, unsurprisingly, I<br/>was teaching on Windows) some of the class chose gvim.exe or other<br/>appropriate editors, but the most popular editor chosen, for coding in<br/>Perl, was Notepad.<br/><br/>A susprising number of organizations make their developers use vi (or a<br/>clone) but the staff haven&#39;t learnt it and are quite inept at it. This<br/>is very useful as a trainer: it provides plent of opportunities to see<br/>somebody struggling with vi and point out a shortcut they didn&#39;t know.<br/><br/>Bonus tips which make an attendees&#39; life easier, but which aren&#39;t on the<br/>topic the training is supposed to be about (like vi on a Perl course),<br/>seem to make them happy. And happy attendees generally make the<br/>training (and the feedback) better.<br/><br/>Smylers<br/> http://www.nntp.perl.org/group/perl.trainers/2008/08/msg608.html Mon, 18 Aug 2008 08:05:13 +0000