From derek at wedgetail.com Mon Dec 2 22:22:19 2002 From: derek at wedgetail.com (Derek Thomson) Date: Wed Aug 4 23:59:01 2004 Subject: [BNE-PM] Perl advent calendar! Message-ID: <3DEC317B.3060204@wedgetail.com> Hi, This has been a yearly tradition for a whole 3 years now ... forever in internet time! The basic idea is that as each day towards Christmas approaches, you open up a new day in the calendar and receive a treat - in this case instead of a sweet or candy, an introduction to a *way* cool Perl module that you might never have heard of otherwise. It's fun and way better for your teeth! Perl newbies or non-initiates can get some idea of the sheer range of quality stuff that's in the module repository (better than *any* other language/platform by at least an order of magnitude!), and for others you get to find some really cool stuff. I've learned of useful modules this way in past years, and this year has already featured URI::Find, IO::AtomicFile and DBD::SQLite, which look great and are things *I'm* going to be using, and I'd certainly never heard of them before. -- D From derek at wedgetail.com Mon Dec 2 22:26:32 2002 From: derek at wedgetail.com (Derek Thomson) Date: Wed Aug 4 23:59:01 2004 Subject: [BNE-PM] [grunts] Perl advent calendar! Message-ID: <3DEC3278.1090103@wedgetail.com> D'oh, d'oh, d'oh! Forgot the link! http://www.perladvent.org/2002/ Lam0r! :) -- D. From Don.Simonetta at mincom.com Tue Dec 17 17:53:25 2002 From: Don.Simonetta at mincom.com (Don.Simonetta@mincom.com) Date: Wed Aug 4 23:59:01 2004 Subject: [BNE-PM] Development Tools for Perl Message-ID: Hi Guys, I thought I'd have a crack at starting a new thread: "Development Tools for Perl". My question is what tools do you use to make development in perl easier/faster/better? My tool of choice: gvim - graphical vim (improved vi). It has all the usual power of "vi" with an additional GUI front-end. There are many other features but the most obvious is the colouring for syntax recognition. It recognises a swag of languages including perl. It runs on both unix & win32 and the most important feature of all is its free! Available from http://www.vim.org Don Simonetta Software Engineer * Don.Simonetta@mincom.com * Tel +61 7 3364-9918 * Fax +61 7 3303-3224 Level 5, 193 Turbot Street, Brisbane, QLD 4000, Australia Mincom. The People. The Experience. The Vision. This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this e-mail are the opinion of the writer only and are not endorsed by the Mincom Group of companies unless expressly stated otherwise. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/brisbane-pm/attachments/20021218/e744fc23/attachment.htm From ken.cole at smiths-aerospace.com.au Tue Dec 17 18:21:09 2002 From: ken.cole at smiths-aerospace.com.au (Ken Cole) Date: Wed Aug 4 23:59:01 2004 Subject: [BNE-PM] Development Tools for Perl Message-ID: <05D93C443A23C844BD758D4A518C4576203132@SAPWIN2K.smiths-aerospace.com.au> Don. vim does it for me. most my work is on Unix/Linux but I also use it on Win32 when I have to. Ken -----Original Message----- From: Don.Simonetta@mincom.com [mailto:Don.Simonetta@mincom.com] Sent: Wednesday, December 18, 2002 9:53 AM To: brisbane-pm-list@happyfunball.pm.org Subject: [BNE-PM] Development Tools for Perl Hi Guys, I thought I'd have a crack at starting a new thread: "Development Tools for Perl". My question is what tools do you use to make development in perl easier/faster/better? My tool of choice: gvim - graphical vim (improved vi). It has all the usual power of "vi" with an additional GUI front-end. There are many other features but the most obvious is the colouring for syntax recognition. It recognises a swag of languages including perl. It runs on both unix & win32 and the most important feature of all is its free! Available from http://www.vim.org Don Simonetta Software Engineer * Don.Simonetta@mincom.com * Tel +61 7 3364-9918 * Fax +61 7 3303-3224 Level 5, 193 Turbot Street, Brisbane, QLD 4000, Australia Mincom. The People. The Experience. The Vision. This transmission is for the intended addressee only and is confidential information. If you have received this transmission in error, please delete it and notify the sender. The contents of this e-mail are the opinion of the writer only and are not endorsed by the Mincom Group of companies unless expressly stated otherwise. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/brisbane-pm/attachments/20021218/1e6adbdf/attachment.htm From d.bussenschutt at mailbox.gu.edu.au Tue Dec 17 19:37:46 2002 From: d.bussenschutt at mailbox.gu.edu.au (David Bussenschutt) Date: Wed Aug 4 23:59:01 2004 Subject: [BNE-PM] Development Tools for Perl Message-ID: Well, I do a fair bit of devel in Win32 land, and I really like the Activestate perl developers kit...especially for allowing me to really easily make a .exe from my perl program for other users without the luxury of perl on their windows box. Oh, and I use vim under unix (syntax highlighting and all), and under windows, I use an editor with syntax highlighting for many things (best for java) called "Jcreator"....or sometimes just use vim under unix , and then scp it to my windows box. ;-). David. -------------------------------------------------------------------- David Bussenschutt Email: D.Bussenschutt@mailbox.gu.edu.au Senior Computing Support Officer & Systems Administrator/Programmer RedHat Certified Engineer. Member of Systems Administrators Guild of Australia. Location: Griffith University. Information Technology Services Brisbane Qld. Aust. (TEN bldg. rm 1.33) Ph: (07)38757079 -------------------------------------------------------------------- From povey at wedgetail.com Tue Dec 17 22:18:56 2002 From: povey at wedgetail.com (Dean Povey) Date: Wed Aug 4 23:59:01 2004 Subject: [BNE-PM] Development Tools for Perl In-Reply-To: Your message of "Wed, 18 Dec 2002 09:53:25 +1000." Message-ID: <200212180418.gBI4IuLq019163@osprey.wedgetail.com> >My tool of choice: gvim - graphical vim (improved vi). > >It has all the usual power of "vi" with an additional GUI front-end. >There are many other features but the most obvious is the colouring for >syntax recognition. It recognises a swag of languages including perl. It >runs on both unix & win32 and the most important feature of all is its >free! Available from http://www.vim.org What! You don't use shell and perl one liners to edit your code? 1. Starting from scratch $ cat < helloworld.pl #!/usr/bin/perl print "This is my hello world pogram!\n"; EOF 2. Fixing a typo $ perl -pi -e 's,pogram,program,' helloworld.pl 3. Inserting a line $ perl -pi -e 'print "use strict;\n" if $. == 2;' helloworld.pl 4. Undo last change $ mv helloworld.pl.bak helloworld.pl 5. Add a loop around the print statement $ perl -pi -e 's,(^print .*;$),for my $i (0..100) { > $1 > } > ,' helloworld.pl 6. Indent the code perl -pi -e '$t++ if $l =~ /{$/; $l=$_; $t-- if /}$/; print " " x $t' \ helloworld.pl 7. Delete various lines (in this case the 3rd and 5th lines) $ perl -pi -e 'undef $_ if grep /^$.$/ (3,5)' helloworld.pl 8. Create an unrolled loop of 100 items $ perl -pi -e 'print $_ x 100 if /print/' helloworld.pl 9. Change 20 of these items $ perl -pi -e 's,\".*\","This is not my hello world program\\n", if $. >= 10 \ && $. < 20' helloworld.pl 10. Display your code with line numbers $ perl -p -e 'print "$.\t"' < helloworld.pl 11. Syntax highlight your code (Requires ANSI terminal $ perl -p -e 's,(\#.*$),\033[32m$1\033[0m,;s,(if|elsif|unless|else|while|for|foreach|do|until|continue|goto|return|last|next|redo|in|sub|my|local|die),\033[1;31m$1\033[0m,g unless /#|\"/;s,(push|pop|grep|map),\033[1;33m$1\033[0m,;s,(\"[^\"]*\"),\033[1;32m$1\033[0m,g unless /#|\"/' < helloworld.pl And so on.... It is the only tool you need :-). From d.bussenschutt at mailbox.gu.edu.au Tue Dec 17 22:58:19 2002 From: d.bussenschutt at mailbox.gu.edu.au (David Bussenschutt) Date: Wed Aug 4 23:59:01 2004 Subject: [BNE-PM] Development Tools for Perl Message-ID: Give this man the one-liner award! I love it! So, does anyone else use perl to edit perl code? If the program edited itself, perhaps it could auto-rerun itself after the changes too..... I've got code in my library of snippets that checks the checksum of a file, and I've got perl code that re-exec's itself on demand (usually after getting a kill -HUP signal), so why couldn't we easily have a perl program that re-exec's itself automatically whenever it determines that the code's checksum has changed? Seems to me like a fun (if not potentially useful) thing to do...especially for "daemon" type code and the like where the process is always running. ;-) David. -------------------------------------------------------------------- David Bussenschutt Email: D.Bussenschutt@mailbox.gu.edu.au Senior Computing Support Officer & Systems Administrator/Programmer RedHat Certified Engineer. Member of Systems Administrators Guild of Australia. Location: Griffith University. Information Technology Services Brisbane Qld. Aust. (TEN bldg. rm 1.33) Ph: (07)38757079 -------------------------------------------------------------------- Dean Povey Sent by: owner-brisbane-pm-list@pm.org 18/12/2002 02:18 PM To: Don.Simonetta@mincom.com cc: brisbane-pm-list@happyfunball.pm.org Subject: Re: [BNE-PM] Development Tools for Perl >My tool of choice: gvim - graphical vim (improved vi). > >It has all the usual power of "vi" with an additional GUI front-end. >There are many other features but the most obvious is the colouring for >syntax recognition. It recognises a swag of languages including perl. It >runs on both unix & win32 and the most important feature of all is its >free! Available from http://www.vim.org What! You don't use shell and perl one liners to edit your code? 1. Starting from scratch $ cat < helloworld.pl #!/usr/bin/perl print "This is my hello world pogram!\n"; EOF 2. Fixing a typo $ perl -pi -e 's,pogram,program,' helloworld.pl 3. Inserting a line $ perl -pi -e 'print "use strict;\n" if $. == 2;' helloworld.pl 4. Undo last change $ mv helloworld.pl.bak helloworld.pl 5. Add a loop around the print statement $ perl -pi -e 's,(^print .*;$),for my $i (0..100) { > $1 > } > ,' helloworld.pl 6. Indent the code perl -pi -e '$t++ if $l =~ /{$/; $l=$_; $t-- if /}$/; print " " x $t' \ helloworld.pl 7. Delete various lines (in this case the 3rd and 5th lines) $ perl -pi -e 'undef $_ if grep /^$.$/ (3,5)' helloworld.pl 8. Create an unrolled loop of 100 items $ perl -pi -e 'print $_ x 100 if /print/' helloworld.pl 9. Change 20 of these items $ perl -pi -e 's,\".*\","This is not my hello world program\\n", if $. >= 10 \ && $. < 20' helloworld.pl 10. Display your code with line numbers $ perl -p -e 'print "$.\t"' < helloworld.pl 11. Syntax highlight your code (Requires ANSI terminal $ perl -p -e 's,(\#.*$),\033[32m$1\033[0m,;s,(if|elsif|unless|else|while|for|foreach|do|until|continue|goto|return|last|next|redo|in|sub|my|local|die),\033[1;31m$1\033[0m,g unless /#|\"/;s,(push|pop|grep|map),\033[1;33m$1\033[0m,;s,(\"[^\"]*\"),\033[1;32m$1\033[0m,g unless /#|\"/' < helloworld.pl And so on.... It is the only tool you need :-).