From djames at thehub.com.au Wed Jul 12 17:52:43 2006 From: djames at thehub.com.au (Damian James) Date: Thu, 13 Jul 2006 10:52:43 +1000 Subject: [Brisbane-pm] Perl Monger t-shirts Message-ID: Hi All, Jay Hannah in the Omaha.pm group is having some Perl Monger t-shirts printed: http://omaha.pm.org/shirts.shtml Some people in other Australian pm groups seem to be interested in organising a combined order to share shipping costs, etc. If anyone in BrisVegas is interested, please send me your details, I'll pass an order on and we can work out the logistics as we go. Cheers, Damian From Sarah.Smith at trolltech.com Wed Jul 12 18:25:07 2006 From: Sarah.Smith at trolltech.com (Sarah Smith) Date: Thu, 13 Jul 2006 11:25:07 +1000 Subject: [Brisbane-pm] Perl Monger t-shirts In-Reply-To: References: Message-ID: <200607131125.07196.Sarah.Smith@trolltech.com> On Thursday 13 July 2006 10:52, Damian James wrote: > Hi All, > > Jay Hannah in the Omaha.pm group is having some Perl Monger t-shirts > printed: > > http://omaha.pm.org/shirts.shtml > > Some people in other Australian pm groups seem to be interested in > organising a combined order to share shipping costs, etc. If anyone in > BrisVegas is interested, please send me your details, I'll pass an > order on and we can work out the logistics as we go. Put me (and my other 1/2) down for two large t-shirts in black. Rgds, -- Sarah Smith Ph +61 7 321 999 06 x130 Trolltech (Australia) Pty Ltd From peter at machell.net Tue Jul 25 00:15:35 2006 From: peter at machell.net (Peter Machell) Date: Tue, 25 Jul 2006 17:15:35 +1000 Subject: [Brisbane-pm] Help - I barely speak Camel. Message-ID: Hi list. Jacinta Richardson suggested I join. I'm a fairly junior sysadmin, by no means a programmer. I have hacked bits and pieces in Perl over the years and find it very good for glue, but do this so infrequently that I need to relearn even the basics each time. I need to develop a simple application and would like to do so in Perl. Is this list an appropriate place to ask questions about this with a view to better understanding and refining my code? Assuming that it is, can I start with the workflow and see if it makes sense? I need to interface with a number of different databases to pull out some demographic information, feed this into an array, regex it to get the formatting right, then send it, and a message containing variables from this info, to an API for which I have a Perl example. Returning from that API will be some debug, which I'd like to combine with the information and print out to a HTML file for reporting. As I'm dealing with a number of different database engines, I figure I'll do the initial data mining using those engine's tools, and start the Perl code with pulling data from a CSV file. This seems easier to me than trying to get a DBI going for each engine and using Perl to do the queries. I'm sure there are many on this list that could knock this up in a few minutes, but I'd really like to do it myself so that I can completely understand the process, and continue to develop and support it. Please let me know if this is an appropriate forum for this sort of thing, and if not, where I may find one. Thanks in advance, Peter. From Sarah.Smith at trolltech.com Thu Jul 27 23:53:01 2006 From: Sarah.Smith at trolltech.com (Sarah Smith) Date: Fri, 28 Jul 2006 16:53:01 +1000 Subject: [Brisbane-pm] Help - I barely speak Camel. In-Reply-To: References: Message-ID: <44C9B44D.2010001@trolltech.com> Peter Machell wrote: > Hi list. Jacinta Richardson suggested I join. I'm a fairly junior > sysadmin, by no means a programmer. I have hacked bits and pieces in > Perl over the years and find it very good for glue, but do this so > infrequently that I need to relearn even the basics each time. > > I need to develop a simple application and would like to do so in > Perl. Is this list an appropriate place to ask questions about this > with a view to better understanding and refining my code? > > Assuming that it is, can I start with the workflow and see if it > makes sense? > > I need to interface with a number of different databases to pull out > some demographic information, feed this into an array, regex it to > get the formatting right, then send it, and a message containing > variables from this info, to an API for which I have a Perl example. > Returning from that API will be some debug, which I'd like to combine > with the information and print out to a HTML file for reporting. > Perls CGI module will do what you need and has a great man page. Try "man CGI" on your Apple OSX machine. > As I'm dealing with a number of different database engines, I figure > I'll do the initial data mining using those engine's tools, and start > the Perl code with pulling data from a CSV file. This seems easier to > me than trying to get a DBI going for each engine and using Perl to > do the queries. > Sure. For one off reports that's probably fine. > I'm sure there are many on this list that could knock this up in a > few minutes, but I'd really like to do it myself so that I can > completely understand the process, and continue to develop and > support it. > I think if you're treating this partly as a learning experience then doing the DBI code would probably be a good thing. Also if you have to run the script more than once its going to be more a complete solution if it can be run directly from the databases without having to go thru some intermediate manual steps first. When doing DBI coding I usually use the console based tools for the database to make sure my SQL is working and then code it up in Perl. So you'll need to go thru that step first anyway. Also you talk about feeding the data into an array - you might find that methods like fetchrow_hashref will do a lot of the work you're thinking of doing for you. > Please let me know if this is an appropriate forum for this sort of > thing, and if not, where I may find one. > I'm sure folks on this list will help where time permits. > Thanks in advance, > > Peter. > _______________________________________________ > Brisbane-pm mailing list > Brisbane-pm at pm.org > http://mail.pm.org/mailman/listinfo/brisbane-pm > > From djames at thehub.com.au Sun Jul 30 17:55:26 2006 From: djames at thehub.com.au (Damian James) Date: Mon, 31 Jul 2006 10:55:26 +1000 Subject: [Brisbane-pm] Help - I barely speak Camel. In-Reply-To: <44C9B44D.2010001@trolltech.com> References: <44C9B44D.2010001@trolltech.com> Message-ID: Hi Peter, A couple more points that may be of use: - See the "perldsc" man page (type "perldoc perldsc" at a command prompt). If you need examples and ideas regarding complex data structures in perl, that's the very best place to start. - Investigate the Data::Dumper module, which you'll find invaluable while getting to know working with the more elaborate structures you end up making. This is the simplest way to check that the hash of arrays of hashes of lists is being populated the way you expected. - Playing with DBI may well be no effort compared to getting the DBI drivers for the databases you use installed on your platform! With that in mind, it's worth initially playing with DBI and DBD::CSV rather than Text::CSV so that moving on to a DBD driver that talks to real database servers is just a matter of changing modules. - "perl -MCPAN -e shell" is your friend. However, with many (especially binary and XS modules), the OS package tools may be the easier way to go, depending on the OS. This is where the linux and *bsd worlds have it to themselves. Under OSX you might set up darwinports or fink, but neither are quite as smooth as the real bsd ports, apt-get or yum (IME, at least). If you're on Windows, you'll want to use the package tool that came with your perl (ppm for ActiveState, dunno what people using IndigoPerl do). - Use CGI.pm. Set yourself exercises writing little state-keeping scripts that generate multiple pages. Read the pages about it on Lincoln Stein's own website, which have more detail than the man page. More aptly I guess, you should have a go and feel free to ask any questions that come up here on the list. Getting your issues down to specifics is really up to you, but many people here will be happy to answer specific technical questions as they arise. Cheers, Damian On 28/07/2006, at 4:53 PM, Sarah Smith wrote: > Peter Machell wrote: >> Hi list. Jacinta Richardson suggested I join. I'm a fairly junior >> sysadmin, by no means a programmer. I have hacked bits and pieces in >> Perl over the years and find it very good for glue, but do this so >> infrequently that I need to relearn even the basics each time. >> >> I need to develop a simple application and would like to do so in >> Perl. Is this list an appropriate place to ask questions about this >> with a view to better understanding and refining my code? >> >> Assuming that it is, can I start with the workflow and see if it >> makes sense? >> >> I need to interface with a number of different databases to pull out >> some demographic information, feed this into an array, regex it to >> get the formatting right, then send it, and a message containing >> variables from this info, to an API for which I have a Perl example. >> Returning from that API will be some debug, which I'd like to combine >> with the information and print out to a HTML file for reporting. >> > > Perls CGI module will do what you need and has a great man page. Try > "man CGI" on your Apple OSX machine. > >> As I'm dealing with a number of different database engines, I figure >> I'll do the initial data mining using those engine's tools, and start >> the Perl code with pulling data from a CSV file. This seems easier to >> me than trying to get a DBI going for each engine and using Perl to >> do the queries. >> > Sure. For one off reports that's probably fine. >> I'm sure there are many on this list that could knock this up in a >> few minutes, but I'd really like to do it myself so that I can >> completely understand the process, and continue to develop and >> support it. >> > I think if you're treating this partly as a learning experience then > doing the DBI code would probably be a good thing. > > Also if you have to run the script more than once its going to be more > a > complete solution if it can be run directly from the databases without > having to go thru some intermediate manual steps first. > > When doing DBI coding I usually use the console based tools for the > database to make sure my SQL is working and then code it up in Perl. > So > you'll need to go thru that step first anyway. > > Also you talk about feeding the data into an array - you might find > that > methods like fetchrow_hashref will do a lot of the work you're thinking > of doing for you. >> Please let me know if this is an appropriate forum for this sort of >> thing, and if not, where I may find one. >> > I'm sure folks on this list will help where time permits. > > >> Thanks in advance, >> >> Peter. >> _______________________________________________ >> Brisbane-pm mailing list >> Brisbane-pm at pm.org >> http://mail.pm.org/mailman/listinfo/brisbane-pm >> >> > > _______________________________________________ > Brisbane-pm mailing list > Brisbane-pm at pm.org > http://mail.pm.org/mailman/listinfo/brisbane-pm > From djames at thehub.com.au Sun Jul 30 20:45:47 2006 From: djames at thehub.com.au (Damian James) Date: Mon, 31 Jul 2006 13:45:47 +1000 Subject: [Brisbane-pm] Fwd: Perl Monger T-Shirt Order Message-ID: <1860e2235438b16e00931d104b9bf41b@thehub.com.au> Hi All, Just a reminder that t-shirts are being ordered. If you haven't already, please pass your order on to me by Thursday evening (3/7). I'll place a Brisbane group order and that will mean there is one single shipment to Brisbane. We can out distribution and payment from there, possibly as good a reason as any for a Brisbane.pm meeting. We'll see... Cheers, Damian Begin forwarded message: > From: Adam Clarke > Date: 25 July 2006 5:39:28 PM > To: djames at thehub.com.au, stephen at sydney.pm.org, > jeremy.price at member.sage-au.org.au, melbourne-pm at pm.org > Subject: Perl Monger T-Shirt Order > > Hi Perl people, > > Scott Penrose and I decided to organise a Perl Monger T-Shirt order on > the back of these guys efforts ( http://omaha.pm.org/shirts.shtml ). > > Strategic Data have volunteered to put in a bulk order and handle > shipping for all Australian Perl Mongers. > > We will put in an order for and invoice anyone who fills in the form > referenced below and responds to our confirmation email. > > The final price is not yet known but it will be in the $20 - $25 > range. When the T's arrive we'll re-bundle them into Perl Monger > batches and re-ship them to the appropriate contact person. > > Anyone who has not paid their invoice by shipment time (whenever that > ends up being) can pay a bit extra to have it shipped direct to them > from us. > > You can place an order here ... > > http://tinyurl.com/gz829 > > ... feel free to organise joint orders amongst yourselves as long as > their is someone who is happy to get an invoice for the whole order. > Otherwise have people put in an order individually. > > Please pass this on to your network. The deadline for orders is the > 4th of August, 2006. > > Cheers > -- > Adam Clarke > www.strategicdata.com.au > From djames at thehub.com.au Sun Jul 30 20:49:17 2006 From: djames at thehub.com.au (Damian James) Date: Mon, 31 Jul 2006 13:49:17 +1000 Subject: [Brisbane-pm] Fwd: Perl Monger T-Shirt Order In-Reply-To: <1860e2235438b16e00931d104b9bf41b@thehub.com.au> References: <1860e2235438b16e00931d104b9bf41b@thehub.com.au> Message-ID: <63cec443a08d58dfc402cdf5e4433912@thehub.com.au> Hi, On 31/07/2006, at 1:45 PM, Damian James wrote: > Just a reminder that t-shirts are being ordered. If you haven't > already, please pass your order on to me by Thursday evening (3/7). Erm, yes of course that should be Thursday 4/8/2006. Wrong week for me. Cheers, Damian