From Peter at PSDT.com Sun Jan 4 11:44:35 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Books for sale Message-ID: <5.2.1.1.2.20040104094242.00b9ea18@shell2.webquarry.com> Forwarded for Mark McLaughlin, who is having trouble posting to the list. Reply to him. *********************************************************** Hello all & Seasons Greetings, Just a note to enquire about some books VLUG is trying to sell. We received these as a donation and have sold many titles, with these ones left. I would like to offer them to the Perl groups' members. If folks want titles, they can pick them up from me, (preferable) or I can bring them to the monthly meeting. Please advise at address below. These are books still available for purchase from the donated book list. Cost is $10.00 per title. Please respond _off list_ to address below to order titles. mailto:mark@bestcolorvideo.com Titles in rough groupings: First come, first served. List of computer science books (prices supplied by donor.) *************************************************************** Linux Journal Press The book of zope: how to build and deliver web applications $59.95 A. Gauld Learn to program using python $49.50 G. Thiruvathukal web programming in python techniques for integrating Linux, Apache, and MySQL $68.00 D. Harms JSP, Servlets, and MySQL $59.99 F. Hawlitzek Java 2 $29.99 Q. Mahmoud Learning Wireless Java $52.95 C. Horstmann Big JAVA $92.00 J. Russell JAVA programming for absolute beginners $44.95 K. mughal A programmers guide to JAVA certification $69.95 JSP, Servlets, and, MySQL $59.99 M. Ganguli Making use of JSP $36.75 G. Kawaller JSP weekend crash course $37.99 P. Linden Just JAVA 2 fifth edition $75.00 M. Campione The JAVA tutorial third edition a short course on the basics $59.95 A. Biermann Great ideas in computer science with JAVA $68.40 G. Brill Codenotes for J2EE EJB, JDBC, JSP, and Servlets $ 29.95 J. Goodwill Pure JSP JAVA server pages $52.95 B. McLaughin Building JAVA enterprise Applications volume I Architecture $61.95 B. Burd JSP: JavaServer pages $44.99 J. Sanchez Java 2 weekend crash course $29.99 A. Taylor JSP and JAVA $60.00 P. Niemeyer Learning java $51.95 D. Fields Web development with JavaServer Pages $65.95 K. Drexler Engines of creation: coming era of nanotechnology $19.95 B.C Crandell Nanotechnology molecular speculations on global abundance $30 J. Brown The quest for quantum mechanics $24.50 T. Kindberg Distributed systems $103.95 G. Glass Web services building blocks for distributed systems $59.95 Dave Baum's definitive guide to Lego Mindstorm $37.45 V. Colella Adventure in modeling $17.97 Web mining for profit E-business optimization $63.90 V. and R. Sharma Dev.e-commerce sites an integrated approach $59.95 Deitel and Deitel C# $102.95 B. Eckel Thinking in c++ $56.00 C. Bennett Practical WAP: developing applications for the wireless web $54.55 K. Fung XSLT working with XML and HTML $59.95 J. Snell Programming web services with soap $52.95 G. Brill Codenotes for .net $29.95 G. Brill Codenotes for XML $29.95 L. Quin Open source XML database toolkit $69.95 E. Ahmed Jscript .NET programming $59.99 PERL: Official guide to programming with CGI.pm the standard for building web scripts $54.50 D. Cross Data munging with perl $54.95 L. Stein network programming with perl $59.99 M. schilli Perl Power:A Guide Programming with Perl 5 $59.95 Holzner PERL Black Book - $73.99 Sparling & Wiles Instant Perl Modules $79.95 S. Norberg Securing Windows NT/2000 servers $43.95 R. Mellor ASP learning by example $22.95 D. Reynolds AppleWorks 6 the missing manual that should have been in the box $29.95 D. Thomas Programming ruby $64.50 R. Feldt RUBY developers guide $77.95 *************************************************************** Cheers Mark McLaughlin Past (2003) VLUG Vice President. mailto:mark@bestcolorvideo.com ---------------------------------------------------------------- Best Color Video Production CD-ROM Website Design mailto:mark@bestcolorvideo.com Ph. 250-744-4111 Fx. www.bestcolorvideo.com/ www.BCVnet.com Website Hosting & Server Colocation " We Produce Videos & Internet Websites for YOUR Business " ---------------------------------------------------------------- From Peter at PSDT.com Tue Jan 6 15:07:27 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Fwd: Perl programmer needed for small project Message-ID: <5.2.1.1.2.20040106125914.01b35ea0@shell2.webquarry.com> The following just came in. I am making the executive decision that this list permits job opportunity postings until such time as the volume thereof becomes intolerable :-) Remember that your response may be perceived as reflecting to some small degree upon the nascent reputation of our group. >Found your name/organization listed at the Perl Mongers website. I >understand that you head a Victoria user group. > >I have a small project that needs a Perl programmer. > >It involves a modification to an eCommerce Classified CGI script which >currently contains a (data entry and) search box of "Price", that is, >a price field setup to enter numeric data and to be searched >numerically. Values are entered in the data entry box by one user and >a different user would search (using search boxes, ie price between >value in box 1 and value in box 2) for companies matching the numeric >parameter. This needs to be changed to a (data entry and) search box >of "Island/Country" which obviously would not be numeric or searched >numerically. One user would enter an Island/Country preferably >through a dropdown list, and a different user would search (using a >dropdown list) for companies using a selection from the Island/Country >list along with another field that is already built into the eCommerce >Classified CGI script, which is a Category and Subcategory dropdown >list. So I need someone to be fairly proficient at Perl to modify >this. Such a person from the Victoria or Vancouver area might be >called on to do other work for my website in the future as well but >the modification to the eCommerce Classified CGI script needs to be >done as soon as possible. > >Can you recommend anyone or post this request so that Perl programmers >in your user group could contact me. They can email Michael, >homeair@telus.net. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From darren at DarrenDuncan.net Tue Jan 6 16:02:38 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Fwd: Perl programmer needed for small project In-Reply-To: <5.2.1.1.2.20040106125914.01b35ea0@shell2.webquarry.com> Message-ID: On Tue, 6 Jan 2004, Peter Scott wrote: > The following just came in. I am making the executive decision that > this list permits job opportunity postings until such time as the > volume thereof becomes intolerable :-) Remember that your response may > be perceived as reflecting to some small degree upon the nascent > reputation of our group. Peter, first of all, feel free to post all the Perl job opportunities you want, until volume becomes intolerable. On my part, this position you forwarded sounds like something I could do, and depending how good their code is, something that could be simple and easy. And I am technically unemployed right now. And that job does go straight to my expertise. My main reservation against taking this position is that I am trying to create something of my own as soon as possible, and doing another person's project, especially if recurring, could seriously hamper this. So does this sound like a valid concern or would I be better off to contact that person? Something I'm considering is contacting the person to say that I could be available, but that I have existing projects on the go and would prefer to "be the backup option" if another suitable person can't be found. Also, I prefer to work either from home or from a Sidney/Victoria location (their equipment in the latter case). If I do volunteer, and I don't know the overhead of trying to understand another person's code, should I request to get paid by the hour or for the job? In the end, what action of mine would best reflect on VPM? Thanks for any helpful information. -- Darren Duncan From darren at DarrenDuncan.net Tue Jan 6 16:30:52 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Fwd: Perl programmer needed for small project In-Reply-To: <5.2.1.1.2.20040106125914.01b35ea0@shell2.webquarry.com> Message-ID: As an addendum to my earlier response, I have gone ahead and contacted Michael to offer my services, "assuming your need isn't filled yet and we can come to a good arrangement of the details". Of course, if you have any advice, I still welcome it. Have a good day, and thanks for letting me know about this. -- Darren Duncan From Peter at PSDT.com Tue Jan 6 17:09:54 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Fwd: Perl programmer needed for small project In-Reply-To: References: <5.2.1.1.2.20040106125914.01b35ea0@shell2.webquarry.com> Message-ID: <5.2.1.1.2.20040106150229.00b51f80@shell2.webquarry.com> At 02:02 PM 1/6/2004 -0800, Darren Duncan wrote: >On my part, this position you forwarded sounds like something I could do, >and depending how good their code is, something that could be simple and >easy. And I am technically unemployed right now. And that job does go >straight to my expertise. > >My main reservation against taking this position is that I am trying to >create something of my own as soon as possible, and doing another person's >project, especially if recurring, could seriously hamper this. > >So does this sound like a valid concern or would I be better off to >contact that person? > >Something I'm considering is contacting the person to say that I could be >available, but that I have existing projects on the go and would prefer to >"be the backup option" if another suitable person can't be found. Also, I >prefer to work either from home or from a Sidney/Victoria location >(their equipment in the latter case). > >If I do volunteer, and I don't know the overhead of trying to understand >another person's code, should I request to get paid by the hour or for the >job? > >In the end, what action of mine would best reflect on VPM? Firstly, any professional and courteous action reflects well upon us whether it results in the work being done or not. That's all I was getting at and it was a minor point at best. Secondly, everyone in this field who appears to know anything at all about what they're talking about says that you should bill by the hour. The client of course usually wants a fixed figure but this is not likely to be in their best interests any more than it is in yours. I am currently in favour of the model espoused by "Planning Extreme Programming" (http://www.amazon.com/exec/obidos/tg/detail/-/0201710919/) as the best way to work with a customer to mutual advantage. (It's too long to summarize.) If you think you might have the time to take this on depending on how long it would take the best thing is to be up front about how you need to understand enough of the problem first to estimate whether you can get it done in time. Volunteer to be a backup only if you believe you're likely to have enough time to do it anyway. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From michael at negativespace.net Wed Jan 7 01:28:14 2004 From: michael at negativespace.net (Michael Joyce) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Fwd: Perl programmer needed for small project In-Reply-To: <5.2.1.1.2.20040106150229.00b51f80@shell2.webquarry.com> References: <5.2.1.1.2.20040106125914.01b35ea0@shell2.webquarry.com> <5.2.1.1.2.20040106150229.00b51f80@shell2.webquarry.com> Message-ID: <0DEF6ECE-40E3-11D8-BA87-000A95A53558@negativespace.net> I have been in this situation from the other point of view. You should be paid by the hour. As far as the employer is concerned (having been the employeer), there must be well defined deadlines in the agreement which define deliverables and payment for the deliverables. I could regale you with tales of misadventures, but I digress. Define stages for what you will deliver. Define payments for your deliverables. Put those into a contract. Make sure your contract is legally binding. It is probably for your best interest to include a clause in your contract stating that you will be paid for each deliverable, regardless of the future deliverables. I have seen more than one contract employee treated unfairly. Make certain that there are goals for which you will be paid. Make certain that if you reach a goal on time (it is the employeer's responsibility to define "on time") you will be paid. I have often heard "program defensively" stated in classes. "Contract defensively" should also be stated. Make sure that you define the work schedule, and that you are paid for the work you complete on time. Michael On Jan 6, 2004, at 3:09 PM, Peter Scott wrote: > At 02:02 PM 1/6/2004 -0800, Darren Duncan wrote: >> On my part, this position you forwarded sounds like something I could >> do, >> and depending how good their code is, something that could be simple >> and >> easy. And I am technically unemployed right now. And that job does >> go >> straight to my expertise. >> >> My main reservation against taking this position is that I am trying >> to >> create something of my own as soon as possible, and doing another >> person's >> project, especially if recurring, could seriously hamper this. >> >> So does this sound like a valid concern or would I be better off to >> contact that person? >> >> Something I'm considering is contacting the person to say that I >> could be >> available, but that I have existing projects on the go and would >> prefer to >> "be the backup option" if another suitable person can't be found. >> Also, I >> prefer to work either from home or from a Sidney/Victoria location >> (their equipment in the latter case). >> >> If I do volunteer, and I don't know the overhead of trying to >> understand >> another person's code, should I request to get paid by the hour or >> for the >> job? >> >> In the end, what action of mine would best reflect on VPM? > > Firstly, any professional and courteous action reflects well upon us > whether it results in the work being done or not. That's all I was > getting at and it was a minor point at best. > > Secondly, everyone in this field who appears to know anything at all > about what they're talking about says that you should bill by the > hour. The client of course usually wants a fixed figure but this is > not likely to be in their best interests any more than it is in yours. > I am currently in favour of the model espoused by "Planning Extreme > Programming" > (http://www.amazon.com/exec/obidos/tg/detail/-/0201710919/) as the > best way to work with a customer to mutual advantage. (It's too long > to summarize.) > > If you think you might have the time to take this on depending on how > long it would take the best thing is to be up front about how you need > to understand enough of the problem first to estimate whether you can > get it done in time. Volunteer to be a backup only if you believe > you're likely to have enough time to do it anyway. > > > -- > Peter Scott > Pacific Systems Design Technologies > http://www.perldebugged.com/ > *** New! *** http://www.perlmedic.com/ > > > Michael S. Joyce http://www.negativespace.net - all things in between From darren at DarrenDuncan.net Wed Jan 7 03:34:38 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Fwd: Perl programmer needed for small project In-Reply-To: <0DEF6ECE-40E3-11D8-BA87-000A95A53558@negativespace.net> References: <5.2.1.1.2.20040106125914.01b35ea0@shell2.webquarry.com> <5.2.1.1.2.20040106150229.00b51f80@shell2.webquarry.com> <0DEF6ECE-40E3-11D8-BA87-000A95A53558@negativespace.net> Message-ID: Thank you for your response, Michael, and yours Peter. For all those interested, I have been in contact with this person, and not only has he hired me, but I have completed the project already, and he has approved it. He was also happy with my prompt reply. I am getting paid by the hour, for 4 of them to be specific. I just have to invoice him (tomorrow first thing) and get paid; then we're done. I think this will reflect well on Victoria.pm. Good night. -- Darren Duncan From Peter at PSDT.com Wed Jan 7 09:56:41 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Fwd: Perl programmer needed for small project In-Reply-To: References: <0DEF6ECE-40E3-11D8-BA87-000A95A53558@negativespace.net> <5.2.1.1.2.20040106125914.01b35ea0@shell2.webquarry.com> <5.2.1.1.2.20040106150229.00b51f80@shell2.webquarry.com> <0DEF6ECE-40E3-11D8-BA87-000A95A53558@negativespace.net> Message-ID: <5.2.1.1.2.20040107075615.01c008e0@shell2.webquarry.com> At 01:34 AM 1/7/2004 -0800, Darren Duncan wrote: >I think this will reflect well on Victoria.pm. Excellent. Perhaps we should hang out a shingle on the web site :-) -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From cconstan at csc.UVic.CA Wed Jan 7 10:50:33 2004 From: cconstan at csc.UVic.CA (Carl B. Constantine) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Next meeting? Message-ID: <20040107165033.GA2437@csc> Now that the Holidays are over and my schedule is freed up a bit after taking a course, when is the next PM meeting? I should actually be able to attend :-) If no one has a topic, I could present something I did for some code refinement and also would like to garner ideas on improving my perl code from you experts once I've presented what I have, what decisions I made and so forth. Anyone interested? -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A248, 721-8766 From darren at DarrenDuncan.net Wed Jan 7 15:52:46 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Next meeting? In-Reply-To: <20040107165033.GA2437@csc> References: <20040107165033.GA2437@csc> Message-ID: At 8:50 AM -0800 1/7/04, Carl B. Constantine wrote: >Now that the Holidays are over and my schedule is freed up a bit after >taking a course, when is the next PM meeting? I should actually be able >to attend :-) > >If no one has a topic, I could present something I did for some code >refinement and also would like to garner ideas on improving my perl code >from you experts once I've presented what I have, what decisions I made >and so forth. > >Anyone interested? Please do that, Carl. I still probably won't be ready to do my talk for any time in January (or if I did, it would be incomplete), though I should surely be able to do February. -- Darren Duncan From ef at kwinternet.com Wed Jan 7 15:59:52 2004 From: ef at kwinternet.com (Eric) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Next meeting? In-Reply-To: References: <20040107165033.GA2437@csc> Message-ID: <6.0.0.22.0.20040107135901.02675528@mail.kwinternet.com> Hi, So how many people are showing up to the meetings now? I keep meaning to visit.. Thanks, Eric At 01:52 PM 1/7/2004, Darren Duncan wrote: >At 8:50 AM -0800 1/7/04, Carl B. Constantine wrote: >>Now that the Holidays are over and my schedule is freed up a bit after >>taking a course, when is the next PM meeting? I should actually be able >>to attend :-) >> >>If no one has a topic, I could present something I did for some code >>refinement and also would like to garner ideas on improving my perl code >>from you experts once I've presented what I have, what decisions I made >>and so forth. >> >>Anyone interested? > >Please do that, Carl. > >I still probably won't be ready to do my talk for any time in January (or if I did, it would be incomplete), though I should surely be able to do February. > >-- Darren Duncan From Peter at PSDT.com Wed Jan 7 16:37:20 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Next meeting? In-Reply-To: <6.0.0.22.0.20040107135901.02675528@mail.kwinternet.com> References: <20040107165033.GA2437@csc> Message-ID: <5.2.1.1.2.20040107143125.00b61420@shell2.webquarry.com> At 01:59 PM 1/7/2004 -0800, Eric wrote: >Hi, > >So how many people are showing up to the meetings now? I keep meaning >to visit.. 6-10 is common. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From cconstan at csc.UVic.CA Wed Jan 7 17:00:12 2004 From: cconstan at csc.UVic.CA (Carl B. Constantine) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Next meeting? In-Reply-To: <5.2.1.1.2.20040107143125.00b61420@shell2.webquarry.com> References: <20040107165033.GA2437@csc> <5.2.1.1.2.20040107143125.00b61420@shell2.webquarry.com> Message-ID: <20040107230012.GC2437@csc> *On Wed Jan 07, 2004 at 02:37:20PM -0800, Peter Scott (Peter@PSDT.com) wrote: > At 01:59 PM 1/7/2004 -0800, Eric wrote: > >Hi, > > > >So how many people are showing up to the meetings now? I keep meaning > >to visit.. > > 6-10 is common. Great. But, where and when? ;-) Also, Peter do you have any copies of your new book available? I want a copy :-) -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A248, 721-8766 From Peter at PSDT.com Wed Jan 7 17:08:31 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Next meeting? In-Reply-To: <20040107230012.GC2437@csc> References: <5.2.1.1.2.20040107143125.00b61420@shell2.webquarry.com> <20040107165033.GA2437@csc> <5.2.1.1.2.20040107143125.00b61420@shell2.webquarry.com> Message-ID: <5.2.1.1.2.20040107150738.00b61420@shell2.webquarry.com> At 03:00 PM 1/7/2004 -0800, Carl B. Constantine wrote: >Great. But, where and when? ;-) Since you'll be talking at the next one, you can pick the day :-) I suggest the 19th. >Also, Peter do you have any copies of your new book available? I want a >copy :-) I'm doing the final edits this week. Amazon will take advance orders :-) -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From darren at DarrenDuncan.net Wed Jan 7 17:35:54 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Next meeting? In-Reply-To: <5.2.1.1.2.20040107150738.00b61420@shell2.webquarry.com> References: <5.2.1.1.2.20040107143125.00b61420@shell2.webquarry.com> <20040107165033.GA2437@csc> <5.2.1.1.2.20040107143125.00b61420@shell2.webquarry.com> <5.2.1.1.2.20040107150738.00b61420@shell2.webquarry.com> Message-ID: At 3:08 PM -0800 1/7/04, Peter Scott wrote: >Since you'll be talking at the next one, you can pick the day :-) I suggest the 19th. I'm quite flexible as far as being able to attend. Monday the 19th works for me, but if another day is picked then that probably should work too. FYI, I am considering buying and bringing a "door prize" to one of the next meetings. Inspired partly by another prize, I thought of "The Best of The Joy of Tech" book. I already have a copy signed by the artists (who live in the Victoria area), and I can get more. Anyone can order their own signed and/or inscribed copy at http://joyoftech.com/ . So my question is, if I were to get an extra copy of this, would anyone want it? (And how should it be inscribed?) -- Darren Duncan From cconstan at csc.UVic.CA Wed Jan 7 18:22:49 2004 From: cconstan at csc.UVic.CA (Carl B. Constantine) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Meeting, Jan 19/04 Message-ID: <20040108002249.GD2437@csc> So then, Any objections to having the meeting on Jan 19 at 7pm? If not, that date works good for me. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A248, 721-8766 From Peter at PSDT.com Wed Jan 7 18:34:49 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] anti_tanvir@yahoo.co.uk Message-ID: <5.2.1.1.2.20040107163328.01b9e9e0@shell2.webquarry.com> I am going to remove this address from the list; it has been bouncing as nonexistent for weeks now. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From brianballard at shaw.ca Wed Jan 7 20:22:48 2004 From: brianballard at shaw.ca (Brian Ballard) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] anti_tanvir@yahoo.co.uk In-Reply-To: <5.2.1.1.2.20040107163328.01b9e9e0@shell2.webquarry.com> Message-ID: <000001c3d58e$4fb43bb0$6500a8c0@black> Actually, could you remove mine too. Once I was really hooked on Perl, was development leader on a monster Perl project in the UK (clustered IBM P series servers)with some cracking developers on our team (including Dave Cross, author of "Data Munging in Perl", and Worldwide PM head honcho...) and planned to make a PM meeting, but to be honest, my perl development has slipped to 0%... bye.... -----Original Message----- From: owner-victoria-pm@pm.org [mailto:owner-victoria-pm@pm.org]On Behalf Of Peter Scott Sent: January 7, 2004 4:35 PM To: victoria-pm@pm.org Subject: [VPM] anti_tanvir@yahoo.co.uk I am going to remove this address from the list; it has been bouncing as nonexistent for weeks now. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From jeremygwa at hotmail.com Fri Jan 9 21:49:11 2004 From: jeremygwa at hotmail.com (Jeremy Aiyadurai) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] socket problem. please help. it's driving me crazy! Message-ID: hi all, I am wondering if someone can help me with a socket problem. I can get windows box to talk to a windows box and linux box to talk to a linux box. I am trying to get a linux box and windows box to talk to each other. But it just wont work, the scripts just stall. I know they connect, but they wont talk. I dont know what I am doing wrong. Your help will be appreciated. Thanks in advance. Jeremy A. Here is the code for the client and server ----------linux server script--------------------------- $| = 1; use IO::Socket; $svr = IO::Socket::INET->new( Proto => "tcp", Type => SOCK_STREAM, LocalPort => "7777", Listen => 1, ); unless ($svr) { die "cannot connect\r\n"; } while(1) { print "waiting for connect\r\n"; my $cli = $svr->accept(); my $data = <$cli>; print $data; chomp($data); chomp($data); my @tosend = `$data`; foreach(@tosend) { print $cli $_; } } -----------------------windows client script------------------- use IO::Socket; my $buf,$ibuf; $remote = IO::Socket::INET->new( Proto => "tcp", PeerAddr => '192.168.1.102', Type => SOCK_STREAM, PeerPort => "7777"); unless ($remote) { die "cannot connect\r\n"; } print $remote "dir\n"; while (sysread($remote,$ibuf,1500)) { $buf .= $ibuf; } print "$buf"; close($remote); _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca From darren at DarrenDuncan.net Fri Jan 9 23:01:26 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] socket problem. please help. it's driving me crazy! In-Reply-To: References: Message-ID: At 7:49 PM -0800 1/9/04, Jeremy Aiyadurai wrote: >I am wondering if someone can help me with a socket problem. >I can get windows box to talk to a windows box and linux box to talk to a linux box. >I am trying to get a linux box and windows box to talk to each other. >But it just wont work, the scripts just stall. I know they connect, but they wont talk. >I dont know what I am doing wrong. >Your help will be appreciated. >Thanks in advance. >Jeremy A. >Here is the code for the client and server Without running the code, what I can suggest given what you said did and didn't work is that there may be a line termination issue. Unix and Windows naturally have different characters for ending lines. Your server is reading into $data until it reaches a linebreak, which will never come because the client sends something different than the server expects. That is, unless IO::Socket::INET translates these for you (I doubt it). I suggest strategic use of code like this on both server and client (its network standard linebreaks I think): my $endl = "\015\012"; # cr + lf local $\ = $endl.$endl; local $/ = $endl.$endl; I use that myself in my CGI::Portable::AdapterSocket module. Another suggestion is to look at what IP address the server and client thinks it is. If the client is trying to talk to a server that is ignoring it, but the server exists, what would happen? -- Darren Duncan From Peter at PSDT.com Sat Jan 10 11:58:58 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] socket problem. please help. it's driving me crazy! In-Reply-To: References: Message-ID: <5.2.1.1.2.20040110095642.00b60308@shell2.webquarry.com> At 09:01 PM 1/9/2004 -0800, Darren Duncan wrote: >At 7:49 PM -0800 1/9/04, Jeremy Aiyadurai wrote: > >I am wondering if someone can help me with a socket problem. > >I can get windows box to talk to a windows box and linux box to talk > to a linux box. > >I am trying to get a linux box and windows box to talk to each other. > >But it just wont work, the scripts just stall. I know they connect, > but they wont talk. > >I dont know what I am doing wrong. > >Your help will be appreciated. > >Thanks in advance. > >Jeremy A. > >Here is the code for the client and server > >Without running the code, what I can suggest given what you said did >and didn't work is that there may be a line termination issue. I agree. The code uses "\n", which means something different on Windows and Unix. This is why the standard Socket module exports the constant $CRLF, network standard as you say below. There are also higher-level modules for facilitating client-server apps. A CPAN search should turn up something better than just printing to sockets. If the application desires asynchronicity, I would look at POE. >Unix and Windows naturally have different characters for ending >lines. Your server is reading into $data until it reaches a >linebreak, which will never come because the client sends something >different than the server expects. That is, unless IO::Socket::INET >translates these for you (I doubt it). > >I suggest strategic use of code like this on both server and client >(its network standard linebreaks I think): > > my $endl = "\015\012"; # cr + lf > local $\ = $endl.$endl; > local $/ = $endl.$endl; > >I use that myself in my CGI::Portable::AdapterSocket module. > >Another suggestion is to look at what IP address the server and client >thinks it is. If the client is trying to talk to a server that is >ignoring it, but the server exists, what would happen? > >-- Darren Duncan -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From abez at abez.ca Sat Jan 10 19:39:31 2004 From: abez at abez.ca (abez) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Room Booked Message-ID: Jan 19th CIT 120 Like usual. 7:00 to whenever. It's booked from 6:30 though. The room has a data projector and maybe a board with paper on it if we're lucky. Otherwise if we bring a dry erase marker I think I can swipe a board from another room. abram -- abez ------------------------------------------ http://www.abez.ca/ Abram Hindle (abez@abez.ca) ------------------------------------------ abez From Peter at PSDT.com Mon Jan 12 12:42:11 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Victoria Perl Mongers meeting Mon 19th Message-ID: <5.2.1.1.2.20040112103213.01726e98@shell2.webquarry.com> Victoria.pm will meet next on Monday, January 19, 7pm, at UVic. Abram reserved CIT 120 as usual; email if you don't know how to get there. Carl Constantine will talk about a "Newbie's experience with perl code refinement": The tale of a relative perl newbie on his quest to make a useful print accounting tool. The decisions, the refinement, in all the gory details. Other topics to be covered as time permits; make requests for anything particular. There will be a book giveaway by the usual method; either Darren will bring the book he talked about or I will bring a Perl 5 Pocket Reference. Or both. (Courtesy copy to VLUG members by permission of the list manager. Victoria.pm's home page is .) -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From darren at DarrenDuncan.net Fri Jan 16 04:04:27 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] ANNOUNCE: new module Locale::KeyedText Message-ID: Hello. Tonight I have released my first module related to my database project, which is code complete, fully documented, with simple examples, *and* fully tested. And it can be used now. Considering the topic of the January meeting, I thought that either then or in the days before it I would like to get some feedback from you guys regarding the new module, such as if you notice any bugs or useability problems. The January meeting was about doing code refactoring or improvements or something. So if there is time beyond the already planned meeting content, I wanted to take a few minutes and go over this new module. It is not database specific itself, but it will be used heavily by my other database-related modules. You can find it here: http://search.cpan.org/~duncand/Locale-KeyedText-0.01/ FYI, this is my first distribution where I used MakeMaker's "make dist"; previously I used "tar -cz". Note that I am already aware of a couple documentation bugs. One is in the SYNOPSIS line that starts with $@ and mentions $message instead of $@ again. The other is by the function lists; most of them don't have the code samples indented. Please report any other bugs you notice, as I plan to delay fixing the above items for a day or two in case I can roll any other fixes into the release. Thank you and have a good day. -- Darren Duncan From Peter at PSDT.com Sun Jan 18 08:42:00 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Victoria Perl Mongers meeting Mon 19th Message-ID: <5.2.1.1.2.20040112104222.01714b08@shell2.webquarry.com> Victoria.pm will meet next on Monday, January 19, 7pm, at UVic. Abram reserved CIT 120 as usual; email if you don't know how to get there. Carl Constantine will talk about a "Newbie's experience with perl code refinement": The tale of a relative perl newbie on his quest to make a useful print accounting tool. The decisions, the refinement, in all the gory details. Other topics to be covered as time permits; make requests for anything particular. There will be a book giveaway by the usual method; either Darren will bring the book he talked about or I will bring a Perl 5 Pocket Reference. Or both. (Courtesy copy to VLUG members by permission of the list manager. Victoria.pm's home page is .) -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From cconstan at csc.UVic.CA Mon Jan 19 16:44:07 2004 From: cconstan at csc.UVic.CA (Carl B. Constantine) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] changing a real to an integer Message-ID: <20040119224407.GE618@csc> If I have a real nubmer like: -0.0800000000017462 and I want to multiply by 1000 and then cut the excess fraction off the end so that all I'm left with is -80 instead of -80.0000000017462, how would I do that? Thanks. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A248, 721-8766 From darren at DarrenDuncan.net Mon Jan 19 17:36:47 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] changing a real to an integer In-Reply-To: <20040119224407.GE618@csc> References: <20040119224407.GE618@csc> Message-ID: At 2:44 PM -0800 1/19/04, Carl B. Constantine wrote: >If I have a real nubmer like: -0.0800000000017462 and I want to multiply >by 1000 and then cut the excess fraction off the end so that all I'm >left with is -80 instead of -80.0000000017462, how would I do that? This is what I would do: $intnum = int(1000*$realnum); I think the parens for 'int' are optional. Essentially that casts its operand as an int and cuts off any fractional part. I'm not sure if this is a truncation or a round, but I suspect truncation is more likely. Note that, if you want to round a number to an arbitrary number of places, N, you can do it like this: $rounded = int($original*(10**N))/(10**N); If you do it often, this would be good to put in a named function, like round_to_n_places. -- Darren Duncan From darren at DarrenDuncan.net Tue Jan 20 01:33:04 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] January meeting follow-up Message-ID: Hello, in particular to those of you who were at today's January meeting. As we discussed, I have just now ordered a copy of Nitrozac and Snaggy's "The Best of the Joy of Tech" online, signed and inscripted by the creators. I asked for a generic inscription of "To the Victoria Perl Mongers". Since it would ship from Victoria, I expect to get it within a week or so, and then it will be on hand for our meeting door prize, probably in February. As a reminder, this is what I am talking about: http://joyoftech.com/geekculturestore/webstore/bestofjoybook.html Have a good day. -- Darren Duncan P.S. I saw a couple copies on the shelf in Chapters today. They are in the Computers -> Operating Systems -> Unix section on the top floor. This is in case you weren't at the meeting and want to see what's inside. Note also that 99% of the comics in it are also (and were originally) free on the above website. The website has over 400 of them, usually produced at a rate of 3 per week (MWF). From cconstan at csc.UVic.CA Thu Jan 22 11:22:12 2004 From: cconstan at csc.UVic.CA (Carl B. Constantine) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] printCode perl script Message-ID: <20040122172212.GE2674@csc> Someone (I think it was Peter) asked what I used to print out my perl code for the meeting. I used another perl script called printCode. You can get it from: http://www.adderpit.com/~sjaveed/coding/printCode.html it uses a2ps. -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A248, 721-8766 From cconstan at csc.UVic.CA Thu Jan 22 13:45:36 2004 From: cconstan at csc.UVic.CA (Carl B. Constantine) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] bizzare perl code question Message-ID: <20040122194536.GD583@csc> I have some perl code (written by someone else) that seems most ugly and ineffecient. Here it is: my ($tmpout,$pgCount); $tmpout = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | tail -1`; $tmpout =~ /Wrote [0-9]* pages/; $pgCount = $&; # find the match from the above line $pgCount =~ /[0-9]+/; # be sure the number is in the appropriate range $pgGuess = $&; # match the above It seems to me, I could replace it with something a little better, like this: my ($tmpout, $pgGuess); $tmpout = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | tail -1`; ($pgGuess) = $tmpout=~ /Wrote (/d+) pages/; Am I off or would not my code be the same as above? -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A248, 721-8766 From peter at PSDT.com Thu Jan 22 13:51:10 2004 From: peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] bizzare perl code question In-Reply-To: <20040122194536.GD583@csc> Message-ID: <5.2.1.1.2.20040122114853.01b42970@shell2.webquarry.com> At 11:45 AM 1/22/2004 -0800, Carl B. Constantine wrote: >I have some perl code (written by someone else) that seems most ugly and >ineffecient. Right on both counts. >Here it is: > > my ($tmpout,$pgCount); > $tmpout = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | > tail -1`; > $tmpout =~ /Wrote [0-9]* pages/; > $pgCount = $&; # find the match from the above line > $pgCount =~ /[0-9]+/; # be sure the number is in the > appropriate range > $pgGuess = $&; # match the above > >It seems to me, I could replace it with something a little better, like >this: > > my ($tmpout, $pgGuess); > $tmpout = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | > tail -1`; > ($pgGuess) = $tmpout=~ /Wrote (/d+) pages/; > >Am I off or would not my code be the same as above? Nope, you're spot on. If you want to divest yourself of one of those variables you can reduce the above to: my ($pgGuess) = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | tail -1` =~ /Wrote (/d+) pages/; assuming you don't need $tmpout for something else. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/ From michael at negativespace.net Thu Jan 22 15:25:27 2004 From: michael at negativespace.net (Michael Joyce) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] bizzare perl code question In-Reply-To: <5.2.1.1.2.20040122114853.01b42970@shell2.webquarry.com> References: <5.2.1.1.2.20040122114853.01b42970@shell2.webquarry.com> Message-ID: <7F8FDB68-4D21-11D8-A7FE-000A95A53558@negativespace.net> Don't forget that within the regex, \d means match a digit, not /d, which will (since you've used the m// form) delimit the end of the regex, try to apply a nonexistent /d switch and generate a syntax error, and probably a warning. Michael On Jan 22, 2004, at 11:51 AM, Peter Scott wrote: > At 11:45 AM 1/22/2004 -0800, Carl B. Constantine wrote: >> I have some perl code (written by someone else) that seems most ugly >> and >> ineffecient. > > Right on both counts. > >> Here it is: >> >> my ($tmpout,$pgCount); >> $tmpout = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | >> tail -1`; >> $tmpout =~ /Wrote [0-9]* pages/; >> $pgCount = $&; # find the match from the above line >> $pgCount =~ /[0-9]+/; # be sure the number is in the >> appropriate range >> $pgGuess = $&; # match the above >> >> It seems to me, I could replace it with something a little better, >> like >> this: >> >> my ($tmpout, $pgGuess); >> $tmpout = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | >> tail -1`; >> ($pgGuess) = $tmpout=~ /Wrote (/d+) pages/; >> >> Am I off or would not my code be the same as above? > > Nope, you're spot on. > > If you want to divest yourself of one of those variables you can > reduce the above to: > > my ($pgGuess) = `/usr/bin/psselect -p1- $dataFile 2>&1 /dev/null | > tail -1` > =~ /Wrote (/d+) pages/; > > assuming you don't need $tmpout for something else. > -- > Peter Scott > Pacific Systems Design Technologies > http://www.perldebugged.com/ > *** New! *** http://www.perlmedic.com/ > > > Michael S. Joyce http://www.negativespace.net - all things in between From darren at DarrenDuncan.net Thu Jan 22 16:32:17 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] short question on naming / documenting Message-ID: I'm looking for a bit of help regarding my SQL::SyntaxModel module/library (currently on CPAN / http://search.cpan.org at version 0.09). Specifically, I am wondering what is the best descriptive name to give a documentation file for it. (Note that this question isn't ultimately Perl-specific, as I will later make a C version of this.) This module contains SQL schemas and queries, represented as a tree of atomic tokens; it is structurally like an abstract syntax tree or an XML DOM. The module's API and code make it look like a generic tree, composed of related Nodes; the restrictions for which attributes each Node can have, and its relationship to others, is defined by data (though for efficiency, that data is also contained in the same module and can't be changed at runtime). As an analogy, the module has an API like a generic XML DOM, but it can enforce a specific XML Schema (the data). The context in which it is used is like a generic database interface. The API basically has an "execute" function, to which a SQL string is given, within that, there is a huge amount of flexability of what the SQL string can say, but it must conform to a specific grammar. The functional API of SQL::SyntaxModel is basically frozen now (resembling xml dom), and it is fully documented with POD that is in the same file as the code (like most Perl modules). What I want to do now is create a separate POD-only file which says what all the 'types' of Nodes are, and what attributes and relationships are allowed for each. This file is meant to replace (part or all of) the current DataDictionary.pod and XMLSchema.pod files already in the distribution, and at the same time, make large updates to the design specs already there. Some design specs will be altered, others added, others consolidated, and some removed. (Correspondingly, I would update the 'data' portions of the module.) I was going to make these design fixes at the same time as improving the organization of the documentation itself. My question for you is what I should name this new document and/or which few terms I should use that give the most accurate message about what it is for, in few words. I thought of these few, but I'm not sure whether any of them are simply incorrect or not, and/or which are the best (and I'm probably missing something): - Language - Schema - Grammar - ? (Note: I don't want to use the words 'Syntax' or 'Model' as they are redundant.) The type of information this file would provide is functionally similar to the SQL design documents, or vendor-specific ones, such as: http://sqlite.org/lang.html Thank you in advance for any suggestions or guidance you can provide. (But I'm not looking for more than a few minutes' effort.) Have a good day. -- Darren Duncan From darren at DarrenDuncan.net Thu Jan 22 16:35:44 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] short question on naming / documenting Message-ID: P.S. Second try: I made the multiple (3) recipients explicit, as the lists don't like bcc. But that also means that you should be careful to only send replies to lists you are a member of, or straight to me only. --------- I'm looking for a bit of help regarding my SQL::SyntaxModel module/library (currently on CPAN / http://search.cpan.org at version 0.09). Specifically, I am wondering what is the best descriptive name to give a documentation file for it. (Note that this question isn't ultimately Perl-specific, as I will later make a C version of this.) This module contains SQL schemas and queries, represented as a tree of atomic tokens; it is structurally like an abstract syntax tree or an XML DOM. The module's API and code make it look like a generic tree, composed of related Nodes; the restrictions for which attributes each Node can have, and its relationship to others, is defined by data (though for efficiency, that data is also contained in the same module and can't be changed at runtime). As an analogy, the module has an API like a generic XML DOM, but it can enforce a specific XML Schema (the data). The context in which it is used is like a generic database interface. The API basically has an "execute" function, to which a SQL string is given, within that, there is a huge amount of flexability of what the SQL string can say, but it must conform to a specific grammar. The functional API of SQL::SyntaxModel is basically frozen now (resembling xml dom), and it is fully documented with POD that is in the same file as the code (like most Perl modules). What I want to do now is create a separate POD-only file which says what all the 'types' of Nodes are, and what attributes and relationships are allowed for each. This file is meant to replace (part or all of) the current DataDictionary.pod and XMLSchema.pod files already in the distribution, and at the same time, make large updates to the design specs already there. Some design specs will be altered, others added, others consolidated, and some removed. (Correspondingly, I would update the 'data' portions of the module.) I was going to make these design fixes at the same time as improving the organization of the documentation itself. My question for you is what I should name this new document and/or which few terms I should use that give the most accurate message about what it is for, in few words. I thought of these few, but I'm not sure whether any of them are simply incorrect or not, and/or which are the best (and I'm probably missing something): - Language - Schema - Grammar - ? (Note: I don't want to use the words 'Syntax' or 'Model' as they are redundant.) The type of information this file would provide is functionally similar to the SQL design documents, or vendor-specific ones, such as: http://sqlite.org/lang.html Thank you in advance for any suggestions or guidance you can provide. (But I'm not looking for more than a few minutes' effort.) Have a good day. -- Darren Duncan From darren at DarrenDuncan.net Thu Jan 22 18:12:22 2004 From: darren at DarrenDuncan.net (Darren Duncan) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] January meeting follow-up In-Reply-To: References: Message-ID: As a follow-up to the message I sent on Monday after the meeting, quoted below for convenience ... I have now received the book in the mail. (And in record time - less than 3 days, compared to several weeks for the first one). It is signed by the artists and inscribed 'To the Victoria Perl Mongers'. So I now have the book on hand for a future meeting door prize. -- Darren Duncan At 11:33 PM -0800 1/19/04, Darren Duncan wrote: >Hello, in particular to those of you who were at today's January meeting. > >As we discussed, I have just now ordered a copy of Nitrozac and Snaggy's "The Best of the Joy of Tech" online, signed and inscripted by the creators. > >I asked for a generic inscription of "To the Victoria Perl Mongers". > >Since it would ship from Victoria, I expect to get it within a week or so, and then it will be on hand for our meeting door prize, probably in February. > >As a reminder, this is what I am talking about: > >http://joyoftech.com/geekculturestore/webstore/bestofjoybook.html > >Have a good day. > >-- Darren Duncan > >P.S. I saw a couple copies on the shelf in Chapters today. They are in the Computers -> Operating Systems -> Unix section on the top floor. This is in case you weren't at the meeting and want to see what's inside. Note also that 99% of the comics in it are also (and were originally) free on the above website. The website has over 400 of them, usually produced at a rate of 3 per week (MWF). From cconstan at csc.UVic.CA Mon Jan 26 11:52:47 2004 From: cconstan at csc.UVic.CA (Carl B. Constantine) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Can't locate method via ... Message-ID: <20040126175246.GA3027@csc> I have some perl code that was written by someone else. It's a package that was tacked on the end of a regular perl script. So I ripped it out and pasted it into it's own package file and gave it a name: UVic::Tempfiles. First I get an error about unable to locate UVic/Tempfiles even though I have a use lib line. It turns out that I had to put it in a UVic subdir. But other UVic:: modules did not produce that error, so I'm curious why they don't need to be in the Subdir but mine does? Anyway, the main point is this module defines the method HoldInput, but I get this error when I try to create a new version of this object: Can't locate object method "HoldInput" via package "Tempfiles" (perhaps you forgot to load "Tempfiles"?) at /etc/localhost/arms/lib/UVic/Tempfiles.pm line 29. But that method IS defined. Additionally, I tried to put it in the Exporter line at the top of the module file to no avail: use Exporter; @ISA = ('Exporter'); @EXPORT=qw(&new &HoldInput &Temppath); I've tried putting HoldInput above the 'new' method, also to no avail. Anyone know what I'm doing wrong? This has worked before just as is (older perl mind you) and I haven't modified anything, just copy and paste. So what's up? The Camel book says that "you called a method correctly, and it correctly indicated a package functionion as a class, but that package doesn't define that perticular method, nor does any of its base classes." Huh? it does so, right in the package! -- Carl B. Constantine University of Victoria Programmer Analyst http://www.csc.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A248, 721-8766 From Peter at PSDT.com Mon Jan 26 12:22:24 2004 From: Peter at PSDT.com (Peter Scott) Date: Wed Aug 4 00:11:30 2004 Subject: [VPM] Can't locate method via ... In-Reply-To: <20040126175246.GA3027@csc> Message-ID: <5.2.1.1.2.20040126101639.01b7dc90@shell2.webquarry.com> At 09:52 AM 1/26/2004 -0800, Carl B. Constantine wrote: >I have some perl code that was written by someone else. It's a package >that was tacked on the end of a regular perl script. So I ripped it out >and pasted it into it's own package file and gave it a name: >UVic::Tempfiles. > >First I get an error about unable to locate UVic/Tempfiles even though I >have a use lib line. It turns out that I had to put it in a UVic subdir. >But other UVic:: modules did not produce that error, so I'm curious why >they don't need to be in the Subdir but mine does? If a module's name begins with "Uvic::" then it will be found by a use statement if and only if it is located in a subdirectory called UVic under one of the directories in @INC. I'm sure if you inspect closely you'll find this to be the case. >Anyway, the main point is this module defines the method HoldInput, but >I get this error when I try to create a new version of this object: > >Can't locate object method "HoldInput" via package "Tempfiles" >(perhaps you forgot to load "Tempfiles"?) at >/etc/localhost/arms/lib/UVic/Tempfiles.pm line 29. > >But that method IS defined. That means you were trying to call it as : Tempfiles->HoldInput instead of by its real name: UVic::Tempfiles->HoldInput The colons in a class name are part of the name. Their only significance is in defining a directory structure for where a .pm file will be searched for by a use or require statement. >Additionally, I tried to put it in the >Exporter line at the top of the module file to no avail: > >use Exporter; >@ISA = ('Exporter'); >@EXPORT=qw(&new > &HoldInput > &Temppath); You don't want the ampersands there... I'm fairly sure they change the meaning. Not a good idea to export a function with a name as generic as 'new' either. I rarely eexport names. I think you're much better just calling them as class methods: UVic::Tempfiles->HoldInput etc, which don't require exporting. >I've tried putting HoldInput above the 'new' method, also to no avail. > >Anyone know what I'm doing wrong? This has worked before just as is >(older perl mind you) and I haven't modified anything, just copy and >paste. So what's up? You changed the structure and syntax along with your cutting and pasting, and/or broke an incorrect assumption about how to use objects. >The Camel book says that "you called a method correctly, and it >correctly indicated a package functionion as a class, but that package >doesn't define that perticular method, nor does any of its base >classes." > >Huh? it does so, right in the package! > >-- >Carl B. Constantine University of Victoria >Programmer Analyst http://www.csc.uvic.ca >UNIX System Administrator Victoria, BC, Canada >cconstan@csc.uvic.ca ELW A248, 721-8766 -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ *** New! *** http://www.perlmedic.com/