From Andy_Bach at wiwb.uscourts.gov Fri Feb 3 12:14:43 2006 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach@wiwb.uscourts.gov) Date: Fri, 3 Feb 2006 14:14:43 -0600 Subject: [Chicago-talk] Fw from p6-lang: something between "state" and "my" Message-ID: Hey. Anybody have a simple exegesis on the 'temp', 'state' 'env' modifiers and, perhaps the '+ twigil' ? ----- Forwarded by Andy Bach/WIWB/07/USCOURTS on 02/03/2006 02:09 PM ----- On Fri, Feb 03, 2006 at 06:45:23AM +0000, Luke Palmer wrote: : On 2/3/06, Dave Whipp wrote: : > sub factorial(Int $x) { : > temp state Int $result = 1; : > $result *= $x; : > factorial $x-1 if $x > 2; : > return $result if want; : > } : > say factorial 6; : : That's precisely what "env" variables are for. The right way: : : sub factorial(Int $x) { : env $result = 1; : my sub fact(Int $x) { : $+result *= $x; : fact($x - 1) if $x > 2; : return $result; : } : fact($x); : } : : Of course, you can view env variables as implicit parameters. Given : that, this function might be able to reduce to: : : sub factorial(Int $x) { : env $+result = 1; # expecting $+result : # param, default to 1 : $+result *= $x; : fact($x - 1) if $x > 2; : return $result; : } Hmm, that won't work in my current mental model, where an "env" is used only in the outermost dynamic scope to declare the existence of that outermost scope, and within that scope it behaves exactly like a "my" variable. But that means that the assignment happens every time, not as some kind of default. If you don't have an outermost scope declarator, you've just basically reinvented a less efficient version of globals and "temp", since "env $+result" would always have to assume there was an outer dynamic scope and scan outward to the root dynamic scope. But that's just my current mental model, which history has shown is subject to random tweakage. And maybe "env $+result" could be a special squinting construct that does create-unless-already-created. Doesn't feel terribly clean to me though. If we stick with the + twigil always meaning at least one CALLER::, then clarity might be better served by env $result := $+result // 1; assuming that $+result merely returns undef in the outermost env context. Larry From lembark at wrkhors.com Fri Feb 3 18:01:13 2006 From: lembark at wrkhors.com (Steven Lembark) Date: Fri, 03 Feb 2006 21:01:13 -0500 Subject: [Chicago-talk] [Perl Jobs] perl Financial Systems Support Analyst (onsite), United States, IL, Chicago (fwd) Message-ID: <474E4F3E90B18FB46F77C377@[192.168.1.9]> ---------- Forwarded Message ---------- From: Perl Jobs Subject: [Perl Jobs] perl Financial Systems Support Analyst (onsite), United States, IL, Chicago > Online URL for this job: http://jobs.perl.org/job/3630 > > To subscribe to this list, send mail to jobs-subscribe at perl.org. > To unsubscribe, send mail to jobs-unsubscribe at perl.org. > > Posted: February 3, 2006 > > Job title: perl Financial Systems Support Analyst > > Company name: Moss Search, LTD > > Internal ID: 164 > > Location: United States, IL, Chicago > > Pay rate: 60-80K > > Travel: 0% > > Terms of employment: Salaried employee > > Length of employment: Permanent > > Hours: Full time > > Onsite: yes > > Description: > Global financial firm is seeking a front office support analyst with > strong perl skills to join their team. You'll be responsible for support > of current trading applications, performing deployment tasks such as > software installations, patch upgrades, code deployments, working with > third-party software vendors, and other tasks to keep our > state-of-the-art trading platforms at peak efficiency. > > > > Requires: > > > > 2-3 years UNIX/Linux, Perl, scripting, problem solving and support > experience in a financial or trading firm. > Experience with application support and administration. > Prior experience supporting a front office trading desk is the best fit, > although if you have strong communications skills we'll consider you. > Experience with production support of complex trading or financial markets > systems is highly desired. > Experience with C++ is a good thing. > > > You'll be rewarded with an opportunity to work closely with some of the > most successful financial professionals in the world, learning their > business and supporting their needs in this highly visible role. > > > Required skills: perl, UNIX, Linux > > Desired skills: > financial trading applications support, C++ > > URL for more information: http://www.mossltd.com/ > > Contact information at: > http://jobs.perl.org/job/3630#contact > > > > ---------- End Forwarded Message ---------- -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From brian.d.foy at gmail.com Tue Feb 7 11:39:28 2006 From: brian.d.foy at gmail.com (brian d foy) Date: Tue, 7 Feb 2006 13:39:28 -0600 Subject: [Chicago-talk] Neet trick.... In-Reply-To: <1139337931.76304.10.camel@scotth.emsphone.com> References: <1139337931.76304.10.camel@scotth.emsphone.com> Message-ID: <2715accf0602071139x49c70cd6o791d50f79d2a6575@mail.gmail.com> On 2/7/06, Scott T. Hildreth wrote: [ this came up in MJD's talk last night, so I figured the rest of Chicago.pm might like to see it. It's a little trick to have a module and a script at the same time. ] > I like that 'run unless caller();', although I call my main loop/sub > 'proc'. :-) I talk about it more in TPJ: http://www.tpj.com/documents/s=9621/tpj0411e/0411e.html It's also in Perlmonks: http://www.perlmonks.org/?node_id=396759 -- brian d foy http://www.pair.com/~comdog/ From tigerpeng2001 at yahoo.com Tue Feb 7 16:16:53 2006 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Tue, 7 Feb 2006 16:16:53 -0800 (PST) Subject: [Chicago-talk] Fwd: URGENT REQUIREMENT - SENIOR PERL DEVELOPER - FULL TIME POSITION - NEW YORK CITY Message-ID: <20060208001654.83456.qmail@web54711.mail.yahoo.com> --- Leonard wrote: > Date: Tue, 07 Feb 2006 15:29:02 -0800 > From: Leonard > To: Leonard > Subject: URGENT REQUIREMENT - SENIOR PERL DEVELOPER > - FULL TIME POSITION - > NEW YORK CITY > > > > > Hi > > Urgent requirement for our Client > > Details are as follows: > > Position : Senior PERL Developer - FULL TIME > Skill Set : PERL 7+ Yrs experience > Location - New York City > > > Must be a US Citizen or GC Holder > > Awaiting your reply > > Thanks & Warm Regards > Leonard > Senior Technical Recruiter > ________________________ > Amtex Enterprises Inc. > 520 Weddell Drive: Ste 12, Sunnyvale, CA 94089 > Tel: 408 734 4050 x 235 > > From adam at spatialsystems.org Tue Feb 7 20:05:06 2006 From: adam at spatialsystems.org (Adam) Date: Tue, 7 Feb 2006 22:05:06 -0600 Subject: [Chicago-talk] Chicago Burbs Perl Training References: <1139337931.76304.10.camel@scotth.emsphone.com> <2715accf0602071139x49c70cd6o791d50f79d2a6575@mail.gmail.com> Message-ID: <00ff01c62c64$d8d901d0$0200a8c0@PANASONIULSWMR> I'm looking for a 4 or 5 day Perl class outside the loop. I found one place in Schaumburg (Learning Tree) that has a 4 day perl class. Has anyone had any experience there or reccomend any other Perl training places? Thanks, Adam From orders at siraim.com Tue Feb 7 20:17:45 2006 From: orders at siraim.com (Orders Guy) Date: Tue, 07 Feb 2006 22:17:45 -0600 Subject: [Chicago-talk] Chicago Burbs Perl Training In-Reply-To: <00ff01c62c64$d8d901d0$0200a8c0@PANASONIULSWMR> References: <1139337931.76304.10.camel@scotth.emsphone.com> <2715accf0602071139x49c70cd6o791d50f79d2a6575@mail.gmail.com> <00ff01c62c64$d8d901d0$0200a8c0@PANASONIULSWMR> Message-ID: <43E970E9.8070104@siraim.com> Sun had a perl course they offered at their LaSalle street office. It was a few day course that covered everything you need to get started and become proficient. I'm sure they still offer it from time to time. Check the education/training pages at sun.com Sam ps - not affiliated with Sun in any way, just enjoyed the instructor. Adam wrote: > I'm looking for a 4 or 5 day Perl class outside the loop. > > I found one place in Schaumburg (Learning Tree) that has a 4 day perl class. > Has anyone had any experience there or reccomend any other Perl training > places? > > Thanks, > Adam > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From andy at petdance.com Tue Feb 7 20:46:32 2006 From: andy at petdance.com (Andy Lester) Date: Tue, 7 Feb 2006 22:46:32 -0600 Subject: [Chicago-talk] HTML::Tree coverage in Phalanx Message-ID: OK, HTML::Tree folks: Didn't you guys submit some tests for HTML::Tree? Did I not fold them in? I ran some coverage tests on HTML::Tree today, and found many functions that were never executed at all, which surprised me. Did I miss something? xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From shawn.c.carroll at gmail.com Tue Feb 7 20:51:19 2006 From: shawn.c.carroll at gmail.com (Shawn Carroll) Date: Tue, 7 Feb 2006 22:51:19 -0600 Subject: [Chicago-talk] HTML::Tree coverage in Phalanx In-Reply-To: References: Message-ID: We did submit tests, I just think they ever got rolled in. On 2/7/06, Andy Lester wrote: > > OK, HTML::Tree folks: Didn't you guys submit some tests for > HTML::Tree? Did I not fold them in? > > I ran some coverage tests on HTML::Tree today, and found many > functions that were never executed at all, which surprised me. > > Did I miss something? > > > xoxo, > Andy > > -- > Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- shawn.c.carroll at gmail.com Perl Programmer Soccer Referee From shild at sbcglobal.net Tue Feb 7 20:55:08 2006 From: shild at sbcglobal.net (Scott T. Hildreth) Date: Tue, 07 Feb 2006 22:55:08 -0600 Subject: [Chicago-talk] Interesting read Message-ID: <1139374508.71835.27.camel@fbsd1.dyndns.org> I'm sure a lot of people on this list saw this, but if not here is a link to an interesting discussion, http://use.perl.org/~Ovid/journal/28466 STH -- Scott T. Hildreth From andy at petdance.com Tue Feb 7 21:04:52 2006 From: andy at petdance.com (Andy Lester) Date: Tue, 7 Feb 2006 23:04:52 -0600 Subject: [Chicago-talk] Interesting read In-Reply-To: <1139374508.71835.27.camel@fbsd1.dyndns.org> References: <1139374508.71835.27.camel@fbsd1.dyndns.org> Message-ID: <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> > > > http://use.perl.org/~Ovid/journal/28466 I talked to Curtis about this, and he's planning on looking for folks in PM groups all 'round. He is definitely looking for people to do actual work on some PR-type stuff talking about Perl's perception in business. Yes, that would be working with me, too. xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From andy at petdance.com Tue Feb 7 21:04:52 2006 From: andy at petdance.com (Andy Lester) Date: Tue, 7 Feb 2006 23:04:52 -0600 Subject: [Chicago-talk] Interesting read In-Reply-To: <1139374508.71835.27.camel@fbsd1.dyndns.org> References: <1139374508.71835.27.camel@fbsd1.dyndns.org> Message-ID: <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> > > > http://use.perl.org/~Ovid/journal/28466 I talked to Curtis about this, and he's planning on looking for folks in PM groups all 'round. He is definitely looking for people to do actual work on some PR-type stuff talking about Perl's perception in business. Yes, that would be working with me, too. xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From lembark at wrkhors.com Tue Feb 7 21:27:35 2006 From: lembark at wrkhors.com (Steven Lembark) Date: Wed, 08 Feb 2006 00:27:35 -0500 Subject: [Chicago-talk] Interesting read In-Reply-To: <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> References: <1139374508.71835.27.camel@fbsd1.dyndns.org> <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> Message-ID: -- Andy Lester >> >> >> http://use.perl.org/~Ovid/journal/28466 > > I talked to Curtis about this, and he's planning on looking for folks > in PM groups all 'round. He is definitely looking for people to do > actual work on some PR-type stuff talking about Perl's perception in > business. Yes, that would be working with me, too. This is exactly what the advocacy group was supposed to help deal with. In typical perly fashion, noone was able to agree on answers for these sorts of things. One other issue with Java is that there is a lot more training out there for it. This means that Average Joe Programmer types are more likely to have had exposure to development with specific tools in the language. With Perl most people just "pick it up". Aside from any of us who can going out and teaching it at local public college extension programs, what is there we can do? Of course, people calling up the local extension programs and ASKING for Perl classes would help enormously... -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From lembark at wrkhors.com Tue Feb 7 21:27:35 2006 From: lembark at wrkhors.com (Steven Lembark) Date: Wed, 08 Feb 2006 00:27:35 -0500 Subject: [Chicago-talk] Interesting read In-Reply-To: <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> References: <1139374508.71835.27.camel@fbsd1.dyndns.org> <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> Message-ID: -- Andy Lester >> >> >> http://use.perl.org/~Ovid/journal/28466 > > I talked to Curtis about this, and he's planning on looking for folks > in PM groups all 'round. He is definitely looking for people to do > actual work on some PR-type stuff talking about Perl's perception in > business. Yes, that would be working with me, too. This is exactly what the advocacy group was supposed to help deal with. In typical perly fashion, noone was able to agree on answers for these sorts of things. One other issue with Java is that there is a lot more training out there for it. This means that Average Joe Programmer types are more likely to have had exposure to development with specific tools in the language. With Perl most people just "pick it up". Aside from any of us who can going out and teaching it at local public college extension programs, what is there we can do? Of course, people calling up the local extension programs and ASKING for Perl classes would help enormously... -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From joshua.mcadams at gmail.com Tue Feb 7 21:41:04 2006 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Tue, 7 Feb 2006 23:41:04 -0600 Subject: [Chicago-talk] Interesting read In-Reply-To: References: <1139374508.71835.27.camel@fbsd1.dyndns.org> <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> Message-ID: <49d805d70602072141s1220a9fcgb09c19fcbad65f92@mail.gmail.com> > With Perl most people just "pick it up". Aside from any > of us who can going out and teaching it at local public > college extension programs, what is there we can do? Pull a M$ or Apple and try to teach Perl earlier than college-level by getting into the school system. Get them hooked early. The payoff will not be immediate, but it would still happen while I'm in the job market :) The interview that I just did with Chris Pine focused on a book that he wrote about learning to program with Ruby as a first language. He uses it in his volunteer work with gifted kids. It's good for him, good for the kids, and good for Ruby. Hmm, if we wanted to promote Perl, this would be an interesting way to help do so. From jason at multiply.org Tue Feb 7 21:47:47 2006 From: jason at multiply.org (Jason Gessner) Date: Tue, 7 Feb 2006 23:47:47 -0600 Subject: [Chicago-talk] Interesting read In-Reply-To: <49d805d70602072141s1220a9fcgb09c19fcbad65f92@mail.gmail.com> References: <1139374508.71835.27.camel@fbsd1.dyndns.org> <5A4F5745-2AAF-4586-A60E-859C36326743@petdance.com> <49d805d70602072141s1220a9fcgb09c19fcbad65f92@mail.gmail.com> Message-ID: <2E245535-CC5B-4B56-B65B-597277451CBC@multiply.org> On Feb 7, 2006, at 11:41 PM, Joshua McAdams wrote: > Hmm, if we wanted to promote > Perl, this would be an interesting way to help do so. or a good way to be mean to children. :) in all earnestness, one thing that occurred to me after reading ovid's piece and after listening to josh's interview with chad fowler is that perl is not necessarily an end point. People that love perl tend to have a certain skill set and a certain attitude (about programming and problem solving). That can be good, but as a selling point, only knowing perl is not as much of an attraction as only knowing C++/java or having a lot of professional experience with perl or another dynamic language, but actual work done in several. Perl is one view of the world, despite some outward appearances. In my experience both as a programmer and as someone who hires perl developers, perl + @other_languages can be a kick ass combination. $only_perl is a particular kind of thing that the market and the field is kind of leaving behind. -jason ps - it is late and that was rambly. my apologies. From me at heyjay.com Tue Feb 7 22:02:01 2006 From: me at heyjay.com (Jay Strauss) Date: Wed, 8 Feb 2006 00:02:01 -0600 Subject: [Chicago-talk] is there a perl which? Message-ID: <200602080002.01885.me@heyjay.com> Hi, Is there a function in Perl analygous to the Unix 'which', for saying where in the @INC it will find a package? I do it like: #!/usr/bin/perl (my $module_name = shift) .= ".pm"; $module_name =~ s/::/\//; foreach (@INC) { my $full = "$_/$module_name"; if (-e $full) { print $full; last; } } But thought there might be a built-in or some magic var I can check Thanks Jay From andy at petdance.com Tue Feb 7 22:25:38 2006 From: andy at petdance.com (Andy Lester) Date: Wed, 8 Feb 2006 00:25:38 -0600 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <200602080002.01885.me@heyjay.com> References: <200602080002.01885.me@heyjay.com> Message-ID: <8F5882C2-BF6A-45FB-B382-E74A79CF45D7@petdance.com> > > Is there a function in Perl analygous to the Unix 'which', for > saying where in > the @INC it will find a package? Before it finds it? Not that I know of. But after it's loaded, yes, you look in %INC. $ perl -MTest::More -le'while ( ($key,$val)=each %INC ) { print "$key -> $val" }' Carp.pm -> /usr/share/perl/5.8/Carp.pm warnings/register.pm -> /usr/share/perl/5.8/warnings/register.pm Exporter/Heavy.pm -> /usr/share/perl/5.8/Exporter/Heavy.pm Exporter.pm -> /usr/share/perl/5.8/Exporter.pm vars.pm -> /usr/share/perl/5.8/vars.pm strict.pm -> /usr/share/perl/5.8/strict.pm Test/Builder/Module.pm -> /usr/local/share/perl/5.8.7/Test/Builder/ Module.pm Test/Builder.pm -> /usr/local/share/perl/5.8.7/Test/Builder.pm warnings.pm -> /usr/share/perl/5.8/warnings.pm Config.pm -> /usr/lib/perl/5.8/Config.pm Test/More.pm -> /usr/local/share/perl/5.8.7/Test/More.pm -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From me at heyjay.com Wed Feb 8 06:24:57 2006 From: me at heyjay.com (Jay Strauss) Date: Wed, 8 Feb 2006 08:24:57 -0600 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <8F5882C2-BF6A-45FB-B382-E74A79CF45D7@petdance.com> References: <200602080002.01885.me@heyjay.com> <8F5882C2-BF6A-45FB-B382-E74A79CF45D7@petdance.com> Message-ID: <200602080824.57422.me@heyjay.com> On Wednesday 08 February 2006 12:25 am, Andy Lester wrote: > > Is there a function in Perl analygous to the Unix 'which', for > > saying where in > > the @INC it will find a package? > > Before it finds it? Not that I know of. But after it's loaded, yes, > you look in %INC. > I like your way better. I forgot about %INC. Thanks Jay From tigerpeng2001 at yahoo.com Wed Feb 8 06:35:50 2006 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 8 Feb 2006 06:35:50 -0800 (PST) Subject: [Chicago-talk] HTML::Tree coverage in Phalanx In-Reply-To: Message-ID: <20060208143550.9477.qmail@web54709.mail.yahoo.com> When I worked for Citadel, my scripts triggered deep-recursion warning when they used HTML::TreeBuilder and called tree->delete for parsing eBay listing pages. It did not happen for all but some (1%?) of the pages. I reported this to the author of this module. Maybe someone who still works inCitadel can check the version of the module. It happened in October and November of 2005. --- Andy Lester wrote: > > OK, HTML::Tree folks: Didn't you guys submit some > tests for > HTML::Tree? Did I not fold them in? > > I ran some coverage tests on HTML::Tree today, and > found many > functions that were never executed at all, which > surprised me. > > Did I miss something? > > > xoxo, > Andy > > -- > Andy Lester => andy at petdance.com => www.petdance.com > => AIM:petdance > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From tigerpeng2001 at yahoo.com Wed Feb 8 06:46:45 2006 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 8 Feb 2006 06:46:45 -0800 (PST) Subject: [Chicago-talk] is there a perl which? In-Reply-To: <200602080824.57422.me@heyjay.com> Message-ID: <20060208144645.85736.qmail@web54712.mail.yahoo.com> I put an alias in my .profile or .kshrc. It is from "Perl in a Nutshell". Piping its result to grep or something else to get what you are looking for. alias lspm="find `perl -e 'print "@INC"'` -name '*.pm' -print" --- Jay Strauss wrote: > On Wednesday 08 February 2006 12:25 am, Andy Lester > wrote: > > > Is there a function in Perl analygous to the > Unix 'which', for > > > saying where in > > > the @INC it will find a package? > > > > Before it finds it? Not that I know of. But > after it's loaded, yes, > > you look in %INC. > > > > I like your way better. I forgot about %INC. > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From jbalint at gmail.com Wed Feb 8 07:02:41 2006 From: jbalint at gmail.com (Jess Balint) Date: Wed, 8 Feb 2006 10:02:41 -0500 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <20060208144645.85736.qmail@web54712.mail.yahoo.com> Message-ID: <43ea0812.775ec1b6.304e.ffff9ab0@mx.gmail.com> Here is my shell alias that does it: perl -MFile::Find -e'sub a{ print $File::Find::name."\n" if(m/pm$/); } find(\&a, @INC)' -----Original Message----- From: chicago-talk-bounces at pm.org [mailto:chicago-talk-bounces at pm.org] On Behalf Of tiger peng Sent: Wednesday, February 08, 2006 9:47 AM To: Chicago.pm chatter Subject: Re: [Chicago-talk] is there a perl which? I put an alias in my .profile or .kshrc. It is from "Perl in a Nutshell". Piping its result to grep or something else to get what you are looking for. alias lspm="find `perl -e 'print "@INC"'` -name '*.pm' -print" --- Jay Strauss wrote: > On Wednesday 08 February 2006 12:25 am, Andy Lester > wrote: > > > Is there a function in Perl analygous to the > Unix 'which', for > > > saying where in > > > the @INC it will find a package? > > > > Before it finds it? Not that I know of. But > after it's loaded, yes, > > you look in %INC. > > > > I like your way better. I forgot about %INC. > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From jbalint at gmail.com Wed Feb 8 07:02:41 2006 From: jbalint at gmail.com (Jess Balint) Date: Wed, 8 Feb 2006 10:02:41 -0500 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <20060208144645.85736.qmail@web54712.mail.yahoo.com> Message-ID: <43ea0812.775ec1b6.304e.ffff9ab0@mx.gmail.com> Here is my shell alias that does it: perl -MFile::Find -e'sub a{ print $File::Find::name."\n" if(m/pm$/); } find(\&a, @INC)' -----Original Message----- From: chicago-talk-bounces at pm.org [mailto:chicago-talk-bounces at pm.org] On Behalf Of tiger peng Sent: Wednesday, February 08, 2006 9:47 AM To: Chicago.pm chatter Subject: Re: [Chicago-talk] is there a perl which? I put an alias in my .profile or .kshrc. It is from "Perl in a Nutshell". Piping its result to grep or something else to get what you are looking for. alias lspm="find `perl -e 'print "@INC"'` -name '*.pm' -print" --- Jay Strauss wrote: > On Wednesday 08 February 2006 12:25 am, Andy Lester > wrote: > > > Is there a function in Perl analygous to the > Unix 'which', for > > > saying where in > > > the @INC it will find a package? > > > > Before it finds it? Not that I know of. But > after it's loaded, yes, > > you look in %INC. > > > > I like your way better. I forgot about %INC. > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk From lembark at wrkhors.com Wed Feb 8 07:30:04 2006 From: lembark at wrkhors.com (Steven Lembark) Date: Wed, 08 Feb 2006 10:30:04 -0500 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <200602080824.57422.me@heyjay.com> References: <200602080002.01885.me@heyjay.com> <8F5882C2-BF6A-45FB-B382-E74A79CF45D7@petdance.com> <200602080824.57422.me@heyjay.com> Message-ID: -- Jay Strauss > On Wednesday 08 February 2006 12:25 am, Andy Lester wrote: >> > Is there a function in Perl analygous to the Unix 'which', for >> > saying where in >> > the @INC it will find a package? >> >> Before it finds it? Not that I know of. But after it's loaded, yes, >> you look in %INC. >> > > I like your way better. I forgot about %INC. For methods or derived modules the "can" operator returns a coderef that can be converted into the source module and line number: my $subref = __PACKAGE__->can( 'frobnicate' ); my $subref = $pkg_name->can( $method ); my $subref = $blessed->can( $name ); can all be traced back to the source module and line number. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From frag at ripco.com Wed Feb 8 07:35:06 2006 From: frag at ripco.com (Mike Fragassi) Date: Wed, 8 Feb 2006 09:35:06 -0600 (CST) Subject: [Chicago-talk] is there a perl which? In-Reply-To: <8F5882C2-BF6A-45FB-B382-E74A79CF45D7@petdance.com> References: <200602080002.01885.me@heyjay.com> <8F5882C2-BF6A-45FB-B382-E74A79CF45D7@petdance.com> Message-ID: On Wed, 8 Feb 2006, Andy Lester wrote: > > Is there a function in Perl analygous to the Unix 'which', for > > saying where in > > the @INC it will find a package? > > Before it finds it? Not that I know of. But after it's loaded, yes, > you look in %INC. Better still: install Module::Info from CPAN. It comes with the script module_info, which lets you do this: $> module_info DBI Name: DBI Version: 1.42 Directory: /usr/local/foo/lib/i686-linux File: /usr/local/foo/lib/i686-linux/DBI.pm Core module: no -- Mike F. From fire at dls.net Wed Feb 8 07:42:50 2006 From: fire at dls.net (Bradley Slavik) Date: Wed, 08 Feb 2006 09:42:50 -0600 Subject: [Chicago-talk] is there a perl which? In-Reply-To: References: <200602080002.01885.me@heyjay.com> <8F5882C2-BF6A-45FB-B382-E74A79CF45D7@petdance.com> Message-ID: <20060208154250.C19A7968556@demolition.dls.net> > > On Wed, 8 Feb 2006, Andy Lester wrote: > > > > Is there a function in Perl analygous to the Unix 'which', for > > > saying where in > > > the @INC it will find a package? Don't forget about perl wizards, like Merlyn (who lives at Stonehenge). Bradley From tigerpeng2001 at yahoo.com Wed Feb 8 07:58:06 2006 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 8 Feb 2006 07:58:06 -0800 (PST) Subject: [Chicago-talk] is there a perl which? In-Reply-To: <200602080824.57422.me@heyjay.com> Message-ID: <20060208155807.58426.qmail@web54702.mail.yahoo.com> I stole Andy's idea and add a functoin into my .kshrc. function perlch { pm=$1 dir=$(echo $pm | sed 's/::/\//g') perl -M$pm -le "print $pm, ' = ' ,\$INC{'$dir.pm'}" } Then I can perlch $ perlch DBD::Oracle DBD::Oracle = /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/DBD/Oracle.pm Thanks Andy, --- Jay Strauss wrote: > On Wednesday 08 February 2006 12:25 am, Andy Lester > wrote: > > > Is there a function in Perl analygous to the > Unix 'which', for > > > saying where in > > > the @INC it will find a package? > > > > Before it finds it? Not that I know of. But > after it's loaded, yes, > > you look in %INC. > > > > I like your way better. I forgot about %INC. > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From tigerpeng2001 at yahoo.com Wed Feb 8 08:12:03 2006 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 8 Feb 2006 08:12:03 -0800 (PST) Subject: [Chicago-talk] is there a perl which? In-Reply-To: <20060208155807.58426.qmail@web54702.mail.yahoo.com> Message-ID: <20060208161203.61720.qmail@web54708.mail.yahoo.com> Sorry, forget to quote $pm perl -M$pm -le "print '$pm', ' = ' ,\$INC{'$dir.pm'}" --- tiger peng wrote: > I stole Andy's idea and add a functoin into my > .kshrc. > function perlch { > pm=$1 > dir=$(echo $pm | sed 's/::/\//g') > perl -M$pm -le "print $pm, ' = ' > ,\$INC{'$dir.pm'}" > } > > Then I can perlch > $ perlch DBD::Oracle > DBD::Oracle = > /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/DBD/Oracle.pm > > Thanks Andy, > > > > --- Jay Strauss wrote: > > > On Wednesday 08 February 2006 12:25 am, Andy > Lester > > wrote: > > > > Is there a function in Perl analygous to the > > Unix 'which', for > > > > saying where in > > > > the @INC it will find a package? > > > > > > Before it finds it? Not that I know of. But > > after it's loaded, yes, > > > you look in %INC. > > > > > > > I like your way better. I forgot about %INC. > > > > Thanks > > Jay > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From jason at multiply.org Wed Feb 8 08:30:05 2006 From: jason at multiply.org (Jason Gessner) Date: Wed, 8 Feb 2006 10:30:05 -0600 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <20060208155807.58426.qmail@web54702.mail.yahoo.com> References: <20060208155807.58426.qmail@web54702.mail.yahoo.com> Message-ID: <6AA27B3D-942D-43B3-B75C-FA529D168123@multiply.org> you can also just do perldoc -l MODULENAME i do this all the time: vim `perldoc -l BLAHBLAH` -jason On Feb 8, 2006, at 9:58 AM, tiger peng wrote: > I stole Andy's idea and add a functoin into my .kshrc. > function perlch { > pm=$1 > dir=$(echo $pm | sed 's/::/\//g') > perl -M$pm -le "print $pm, ' = ' ,\$INC{'$dir.pm'}" > } > > Then I can perlch > $ perlch DBD::Oracle > DBD::Oracle = > /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/DBD/ > Oracle.pm > > Thanks Andy, > > > > --- Jay Strauss wrote: > >> On Wednesday 08 February 2006 12:25 am, Andy Lester >> wrote: >>>> Is there a function in Perl analygous to the >> Unix 'which', for >>>> saying where in >>>> the @INC it will find a package? >>> >>> Before it finds it? Not that I know of. But >> after it's loaded, yes, >>> you look in %INC. >>> >> >> I like your way better. I forgot about %INC. >> >> Thanks >> Jay >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From tigerpeng2001 at yahoo.com Wed Feb 8 08:39:47 2006 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Wed, 8 Feb 2006 08:39:47 -0800 (PST) Subject: [Chicago-talk] is there a perl which? In-Reply-To: <6AA27B3D-942D-43B3-B75C-FA529D168123@multiply.org> Message-ID: <20060208163947.66530.qmail@web54710.mail.yahoo.com> That's simple! I have never tried the "-l" --- Jason Gessner wrote: > you can also just do perldoc -l MODULENAME > > i do this all the time: vim `perldoc -l BLAHBLAH` > > -jason > > On Feb 8, 2006, at 9:58 AM, tiger peng wrote: > > > I stole Andy's idea and add a functoin into my > .kshrc. > > function perlch { > > pm=$1 > > dir=$(echo $pm | sed 's/::/\//g') > > perl -M$pm -le "print $pm, ' = ' > ,\$INC{'$dir.pm'}" > > } > > > > Then I can perlch > > $ perlch DBD::Oracle > > DBD::Oracle = > > > /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/DBD/ > > > Oracle.pm > > > > Thanks Andy, > > > > > > > > --- Jay Strauss wrote: > > > >> On Wednesday 08 February 2006 12:25 am, Andy > Lester > >> wrote: > >>>> Is there a function in Perl analygous to the > >> Unix 'which', for > >>>> saying where in > >>>> the @INC it will find a package? > >>> > >>> Before it finds it? Not that I know of. But > >> after it's loaded, yes, > >>> you look in %INC. > >>> > >> > >> I like your way better. I forgot about %INC. > >> > >> Thanks > >> Jay > >> _______________________________________________ > >> Chicago-talk mailing list > >> Chicago-talk at pm.org > >> http://mail.pm.org/mailman/listinfo/chicago-talk > >> > > > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From jason at multiply.org Wed Feb 8 08:45:45 2006 From: jason at multiply.org (Jason Gessner) Date: Wed, 8 Feb 2006 10:45:45 -0600 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <20060208163947.66530.qmail@web54710.mail.yahoo.com> References: <20060208163947.66530.qmail@web54710.mail.yahoo.com> Message-ID: <4C7D5BA5-AAC3-4019-B709-18433DD0459C@multiply.org> yeah, that is cool. I don't recall where i learned about that, but it is really handy. -jason On Feb 8, 2006, at 10:39 AM, tiger peng wrote: > That's simple! I have never tried the "-l" > > --- Jason Gessner wrote: > >> you can also just do perldoc -l MODULENAME >> >> i do this all the time: vim `perldoc -l BLAHBLAH` >> >> -jason >> >> On Feb 8, 2006, at 9:58 AM, tiger peng wrote: >> >>> I stole Andy's idea and add a functoin into my >> .kshrc. >>> function perlch { >>> pm=$1 >>> dir=$(echo $pm | sed 's/::/\//g') >>> perl -M$pm -le "print $pm, ' = ' >> ,\$INC{'$dir.pm'}" >>> } >>> >>> Then I can perlch >>> $ perlch DBD::Oracle >>> DBD::Oracle = >>> >> > /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/DBD/ >> >>> Oracle.pm >>> >>> Thanks Andy, >>> >>> >>> >>> --- Jay Strauss wrote: >>> >>>> On Wednesday 08 February 2006 12:25 am, Andy >> Lester >>>> wrote: >>>>>> Is there a function in Perl analygous to the >>>> Unix 'which', for >>>>>> saying where in >>>>>> the @INC it will find a package? >>>>> >>>>> Before it finds it? Not that I know of. But >>>> after it's loaded, yes, >>>>> you look in %INC. >>>>> >>>> >>>> I like your way better. I forgot about %INC. >>>> >>>> Thanks >>>> Jay >>>> _______________________________________________ >>>> Chicago-talk mailing list >>>> Chicago-talk at pm.org >>>> http://mail.pm.org/mailman/listinfo/chicago-talk >>>> >>> >>> _______________________________________________ >>> Chicago-talk mailing list >>> Chicago-talk at pm.org >>> http://mail.pm.org/mailman/listinfo/chicago-talk >> >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> http://mail.pm.org/mailman/listinfo/chicago-talk >> > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From lembark at wrkhors.com Wed Feb 8 12:00:14 2006 From: lembark at wrkhors.com (Steven Lembark) Date: Wed, 08 Feb 2006 15:00:14 -0500 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <4C7D5BA5-AAC3-4019-B709-18433DD0459C@multiply.org> References: <20060208163947.66530.qmail@web54710.mail.yahoo.com> <4C7D5BA5-AAC3-4019-B709-18433DD0459C@multiply.org> Message-ID: -- Jason Gessner > yeah, that is cool. I don't recall where i learned about that, but > it is really handy. There is always more than one way to be lazy. -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From shijialeee at yahoo.com Wed Feb 8 20:31:33 2006 From: shijialeee at yahoo.com (James.Q.L) Date: Wed, 8 Feb 2006 20:31:33 -0800 (PST) Subject: [Chicago-talk] is there a perl which? In-Reply-To: <6AA27B3D-942D-43B3-B75C-FA529D168123@multiply.org> Message-ID: <20060209043133.46801.qmail@web50407.mail.yahoo.com> --- Jason Gessner wrote: > you can also just do perldoc -l MODULENAME very nice! I would have thought `perl -l MODULENAME` does that. > i do this all the time: vim `perldoc -l BLAHBLAH` > > -jason James. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From me at heyjay.com Thu Feb 9 08:42:59 2006 From: me at heyjay.com (Jay Strauss) Date: Thu, 9 Feb 2006 10:42:59 -0600 Subject: [Chicago-talk] is there a perl which? In-Reply-To: <6AA27B3D-942D-43B3-B75C-FA529D168123@multiply.org> References: <20060208155807.58426.qmail@web54702.mail.yahoo.com> <6AA27B3D-942D-43B3-B75C-FA529D168123@multiply.org> Message-ID: Thanks Jason, I like this suggestion. Thanks Jay On 2/8/06, Jason Gessner wrote: > > you can also just do perldoc -l MODULENAME > > i do this all the time: vim `perldoc -l BLAHBLAH` > > -jason > > On Feb 8, 2006, at 9:58 AM, tiger peng wrote: > > > I stole Andy's idea and add a functoin into my .kshrc. > > function perlch { > > pm=$1 > > dir=$(echo $pm | sed 's/::/\//g') > > perl -M$pm -le "print $pm, ' = ' ,\$INC{'$dir.pm'}" > > } > > > > Then I can perlch > > $ perlch DBD::Oracle > > DBD::Oracle = > > /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/DBD/ > > Oracle.pm > > > > Thanks Andy, > > > > > > > > --- Jay Strauss wrote: > > > >> On Wednesday 08 February 2006 12:25 am, Andy Lester > >> wrote: > >>>> Is there a function in Perl analygous to the > >> Unix 'which', for > >>>> saying where in > >>>> the @INC it will find a package? > >>> > >>> Before it finds it? Not that I know of. But > >> after it's loaded, yes, > >>> you look in %INC. > >>> > >> > >> I like your way better. I forgot about %INC. > >> > >> Thanks > >> Jay > >> _______________________________________________ > >> Chicago-talk mailing list > >> Chicago-talk at pm.org > >> http://mail.pm.org/mailman/listinfo/chicago-talk > >> > > > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20060209/c93958d6/attachment.html From andy at petdance.com Thu Feb 16 09:03:30 2006 From: andy at petdance.com (Andy Lester) Date: Thu, 16 Feb 2006 11:03:30 -0600 Subject: [Chicago-talk] Fwd: New Ubuntu and Perl books available from O'Reilly Rough Cuts References: Message-ID: <35CF1A93-D365-4B37-9B88-DDE412E8BBB5@petdance.com> > From: Marsee Henon > Date: February 16, 2006 10:36:02 AM CST > To: andy at petdance.com > Subject: New Ubuntu and Perl books available from O'Reilly Rough Cuts > > Hello, > > Just wanted to let you know about these brand new Rough Cuts titles > available from O'Reilly: > > > Perl Hacks > http://www.oreilly.com/catalog/perlhks/index.html > > Ubuntu Hacks > http://www.oreilly.com/catalog/ubuntuhks/index.html > > Ajax Design Patterns > http://www.oreilly.com/catalog/ajaxdp/index.html > > > Rough Cuts is a new service that gives you early access to content on > cutting-edge technologies months before it's published. Other titles > include "Ajax Hacks," "Flickr Hacks," "Ruby Cookbook," "Ruby on > Rails," > and "Java and XML, 3rd Edition." > > For more information, go to: > http://www.oreilly.com/roughcuts/ > > > > Thanks! > > Marsee > > ================================================================ > O'Reilly > 1005 Gravenstein Highway North > Sebastopol, CA 95472 > http://ug.oreilly.com/ http://www.oreilly.com > ================================================================ -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20060216/3e4ebcdd/attachment.html From Darren.Young at ChicagoGSB.edu Thu Feb 16 13:36:09 2006 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Thu, 16 Feb 2006 15:36:09 -0600 Subject: [Chicago-talk] UNIX Position Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF80A@GSBEX.gsb.uchicago.edu> If anyone here is seeking employment or knows anyone that is, we're looking for another UNIX admin. http://jobs.careerbuilder.com/JobSeeker/Jobs/JobDetails.aspx?IPath=ILK&j ob_did=J8B4VW5XF0HSB75W42Q&dv=dv&jrdid=&lpage=1&strcrit=QID%3dA665318426 2589%3bst%3dA%3buse%3dALL%3brawWords%3dgsb%3bCID%3dUS%3bSID%3d%3f%3bTID% 3d0%3bENR%3dNO%3bDTP%3dDR3%3bYDI%3dYES%3bIND%3dALL%3bPDQ%3dAll%3bJN%3dAl l%3bPAYL%3d0%3bPAYH%3dGT120%3bPOY%3dNO%3bETD%3dALL%3bRE%3dALL%3bMGT%3dDC %3bSUP%3dDC%3bFRE%3d30%3bCHL%3dAL%3bQS%3dSID_UNKNOWN%3bSS%3dNO%3bTITL%3d 0%3bOB%3d%2bcontactcompany%3bJQT%3dRAD&sfascc=gsb&CiBookMark=1&jobcount= 9&sname= Darren Young Senior UNIX Admin University of Chicago Graduate School of Business From merlyn at stonehenge.com Thu Feb 16 13:54:29 2006 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: 16 Feb 2006 13:54:29 -0800 Subject: [Chicago-talk] UNIX Position In-Reply-To: <490F3E9EEF01B04598860AAB71777B4E2BF80A@GSBEX.gsb.uchicago.edu> References: <490F3E9EEF01B04598860AAB71777B4E2BF80A@GSBEX.gsb.uchicago.edu> Message-ID: <86lkwbx94a.fsf@blue.stonehenge.com> >>>>> "Young," == Young, Darren writes: Young,> If anyone here is seeking employment or knows anyone that is, we're Young,> looking for another UNIX admin. You might also be looking for metamark.net. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From Darren.Young at ChicagoGSB.edu Thu Feb 16 13:57:41 2006 From: Darren.Young at ChicagoGSB.edu (Young, Darren) Date: Thu, 16 Feb 2006 15:57:41 -0600 Subject: [Chicago-talk] UNIX Position Message-ID: <490F3E9EEF01B04598860AAB71777B4E2BF810@GSBEX.gsb.uchicago.edu> > > You might also be looking for metamark.net. :) > Funny.. Smart #$!. From brian.d.foy at gmail.com Thu Feb 16 14:12:45 2006 From: brian.d.foy at gmail.com (brian d foy) Date: Thu, 16 Feb 2006 16:12:45 -0600 Subject: [Chicago-talk] Free books (I'm moving). Message-ID: <2715accf0602161412j6824f195l7330e4be01413045@mail.gmail.com> Well, Chicago folks, now I'm stuck here. My wife and I bought a condo in Chicago, so that pretty much means we aren't moving back to NewYork any time soon. :) Now it's time to dig thought the piles of stuff I've acculumated and decide what I'm keeping. Here are some of the book that didn't make the cut and I'm giving out for free (or for the price of postage, mostly $2.07 for US Media Mail). I'm in Chicago through the weekend, so maybe I should have a book give-away party. Just think of my house as eBay, and everything for sale (with some reserve prices). Spidering Hacks (2 copies) AppleScript: The Definitive Guide (Panther edition) AppleScript in a Nutshell Essential System Administration, 2nd Edition Mac OS X: The Missing Manual, 2nd Edition Programming Jabber MySQL & mSQL Web Security and Commerce, 1st Edition DNS and BIND, Third Edition Regular Expression Recipes The Debian System eBay Hacks Excel Hacks The Best Software Writing, vol. 1 I'll probably have a lot more to add to that list once piles moves and I can see other piles. -- brian d foy http://www.pair.com/~comdog/ From andy at petdance.com Thu Feb 16 14:22:00 2006 From: andy at petdance.com (Andy Lester) Date: Thu, 16 Feb 2006 16:22:00 -0600 Subject: [Chicago-talk] Free books (I'm moving). In-Reply-To: <2715accf0602161412j6824f195l7330e4be01413045@mail.gmail.com> References: <2715accf0602161412j6824f195l7330e4be01413045@mail.gmail.com> Message-ID: On Feb 16, 2006, at 4:12 PM, brian d foy wrote: > Spidering Hacks (2 copies) What? The greatest book of all time!?!?!? -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20060216/cb6684c0/attachment.html From brian.d.foy at gmail.com Thu Feb 16 14:57:50 2006 From: brian.d.foy at gmail.com (brian d foy) Date: Thu, 16 Feb 2006 16:57:50 -0600 Subject: [Chicago-talk] Free books (I'm moving). In-Reply-To: References: <2715accf0602161412j6824f195l7330e4be01413045@mail.gmail.com> Message-ID: <2715accf0602161457q41bbd1yfc51f2a519848837@mail.gmail.com> On 2/16/06, Andy Lester wrote: > Spidering Hacks (2 copies) > > What? The greatest book of all time!?!?!? I'm only getting rid of 2 copies. I'm keeping the third. :) -- brian d foy http://www.pair.com/~comdog/ From richard at rushlogistics.com Fri Feb 17 06:01:13 2006 From: richard at rushlogistics.com (Richard Reina) Date: Fri, 17 Feb 2006 06:01:13 -0800 (PST) Subject: [Chicago-talk] Free books (I'm moving). In-Reply-To: <2715accf0602161412j6824f195l7330e4be01413045@mail.gmail.com> Message-ID: <20060217140113.12489.qmail@web408.biz.mail.mud.yahoo.com> Brian, Congratulations to you and your wife on your new condo. One of these days I've got to make it to the Opera to see her perform. brian d foy wrote: Well, Chicago folks, now I'm stuck here. My wife and I bought a condo in Chicago, so that pretty much means we aren't moving back to NewYork any time soon. :) Now it's time to dig thought the piles of stuff I've acculumated and decide what I'm keeping. Here are some of the book that didn't make the cut and I'm giving out for free (or for the price of postage, mostly $2.07 for US Media Mail). I'm in Chicago through the weekend, so maybe I should have a book give-away party. Just think of my house as eBay, and everything for sale (with some reserve prices). Spidering Hacks (2 copies) AppleScript: The Definitive Guide (Panther edition) AppleScript in a Nutshell Essential System Administration, 2nd Edition Mac OS X: The Missing Manual, 2nd Edition Programming Jabber MySQL & mSQL Web Security and Commerce, 1st Edition DNS and BIND, Third Edition Regular Expression Recipes The Debian System eBay Hacks Excel Hacks The Best Software Writing, vol. 1 I'll probably have a lot more to add to that list once piles moves and I can see other piles. -- brian d foy http://www.pair.com/~comdog/ _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org http://mail.pm.org/mailman/listinfo/chicago-talk A people that values its privileges above its principles soon loses both. -Dwight D. Eisenhower. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20060217/641adf45/attachment.html From me at heyjay.com Mon Feb 20 09:46:27 2006 From: me at heyjay.com (Jay Strauss) Date: Mon, 20 Feb 2006 11:46:27 -0600 Subject: [Chicago-talk] Shortening a module name Message-ID: <200602201146.27932.me@heyjay.com> Hi, I have a module: Finance::InteractiveBrokers::TWS::com::ib::client::Contract When a user creates a: my $tws = Finance::InteractiveBrokers::TWS->new(); is there a way I could provide a shortcut, in Finance::InteractiveBrokers::TWS, for the user to create a contract, without having to build a sub like sub new_Contract { my $self = shift; return Finance::InteractiveBrokers::TWS::com::ib::client::Contract->new(@_); } within Finance::InteractiveBrokers::TWS? I was thinking something along the lines of: my $contract = $tws->contract->new(); Maybe by employing AUTOLOAD, or some other means? I've been messing with AUTOLOAD but I can't get it to work. The above obviously wants the $tws->contract to return an object, that can be new'd, whereas I'd like to get "new" as a parameter to AUTOLOAD and I could do logic for the proper dispatch. I know I could do $tws->contract('new'), but that doesn't seem OO proper. Thanks Jay From jac at natura.di.uminho.pt Mon Feb 20 09:57:33 2006 From: jac at natura.di.uminho.pt (=?iso-8859-1?Q?Jos=E9?= Castro) Date: Mon, 20 Feb 2006 17:57:33 +0000 Subject: [Chicago-talk] Shortening a module name In-Reply-To: <200602201146.27932.me@heyjay.com> References: <200602201146.27932.me@heyjay.com> Message-ID: <20060220175733.GA19666@natura.di.uminho.pt> * Jay Strauss (me at heyjay.com) wrote: > Hi, > > I have a module: > > Finance::InteractiveBrokers::TWS::com::ib::client::Contract > > When a user creates a: > > my $tws = Finance::InteractiveBrokers::TWS->new(); > > is there a way I could provide a shortcut, in Yes. http://search.cpan.org/~ovid/aliased-0.20/ > Finance::InteractiveBrokers::TWS, for the user to create a contract, without > having to build a sub like > > sub new_Contract { > my $self = shift; > return > Finance::InteractiveBrokers::TWS::com::ib::client::Contract->new(@_); > } > > within Finance::InteractiveBrokers::TWS? > > I was thinking something along the lines of: > > my $contract = $tws->contract->new(); > > Maybe by employing AUTOLOAD, or some other means? I've been messing with > AUTOLOAD but I can't get it to work. The above obviously wants the > $tws->contract to return an object, that can be new'd, whereas I'd like to > get "new" as a parameter to AUTOLOAD and I could do logic for the proper > dispatch. > > I know I could do $tws->contract('new'), but that doesn't seem OO proper. > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk -- Jose Alves de Castro http://jose-castro.org/ From brian.d.foy at gmail.com Mon Feb 20 12:31:19 2006 From: brian.d.foy at gmail.com (brian d foy) Date: Mon, 20 Feb 2006 14:31:19 -0600 Subject: [Chicago-talk] Shortening a module name In-Reply-To: <200602201146.27932.me@heyjay.com> References: <200602201146.27932.me@heyjay.com> Message-ID: <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> On 2/20/06, Jay Strauss wrote: > is there a way I could provide a shortcut, in > Finance::InteractiveBrokers::TWS, for the user to create a contract, without > having to build a sub like > > sub new_Contract { > my $self = shift; > return > Finance::InteractiveBrokers::TWS::com::ib::client::Contract->new(@_); > } Why don't you want to do it that way? It's easy to understand, doesn't require any magic, and the user doesn't have to see it. :) You can make a contract part of the TWS object (whatever that is) using a has-a relationship. In Finance::InteractiveBrokers::TWS, you have a contract() method that returns the contract object. That then allows you to do the method chaining that you want. -- brian d foy http://www.pair.com/~comdog/ From me at heyjay.com Mon Feb 20 14:50:55 2006 From: me at heyjay.com (Jay Strauss) Date: Mon, 20 Feb 2006 16:50:55 -0600 Subject: [Chicago-talk] Shortening a module name In-Reply-To: <20060220175733.GA19666@natura.di.uminho.pt> References: <200602201146.27932.me@heyjay.com> <20060220175733.GA19666@natura.di.uminho.pt> Message-ID: <200602201650.55731.me@heyjay.com> On Monday 20 February 2006 11:57 am, Jos? Castro wrote: > * Jay Strauss (me at heyjay.com) wrote: > > Hi, > > > > I have a module: > > > > Finance::InteractiveBrokers::TWS::com::ib::client::Contract > > > > When a user creates a: > > > > my $tws = Finance::InteractiveBrokers::TWS->new(); > > > > is there a way I could provide a shortcut, in > > Yes. > > http://search.cpan.org/~ovid/aliased-0.20/ Thanks, I'd prefer not to introduce another prerequisite/dependency in my code. I'm going to look at the source and see if maybe there is a portion I can cut and paste without using the whole thing Jay From me at heyjay.com Mon Feb 20 14:54:55 2006 From: me at heyjay.com (Jay Strauss) Date: Mon, 20 Feb 2006 16:54:55 -0600 Subject: [Chicago-talk] Shortening a module name In-Reply-To: <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> References: <200602201146.27932.me@heyjay.com> <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> Message-ID: <200602201654.55723.me@heyjay.com> > Why don't you want to do it that way? It's easy to understand, doesn't > require any magic, and the user doesn't have to see it. :) The syntax seems non-standard, and I'm just worried about having to continually add new stubs as the vendor rolls out new functionality. > You can make a contract part of the TWS object (whatever that is) > using a has-a relationship. In Finance::InteractiveBrokers::TWS, you > have a contract() method that returns the contract object. That then > allows you to do the method chaining that you want. I don't think I follow you here. The main thing the user needs to do is ->new these objects. Are you saying somehow return the class that can be new'd? If so will you show me a code example? Thanks Jay From me at heyjay.com Mon Feb 20 15:17:46 2006 From: me at heyjay.com (Jay Strauss) Date: Mon, 20 Feb 2006 17:17:46 -0600 Subject: [Chicago-talk] Shortening a module name In-Reply-To: <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> References: <200602201146.27932.me@heyjay.com> <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> Message-ID: <200602201717.46400.me@heyjay.com> > You can make a contract part of the TWS object (whatever that is) > using a has-a relationship. In Finance::InteractiveBrokers::TWS, you > have a contract() method that returns the contract object. That then > allows you to do the method chaining that you want. Maybe you meant: sub contract { return "Finance::InteractiveBrokers::TWS::com::ib::client::Contract"; } and then later $tws->contract->new(); which works, I didn't know you could do it like that Jay From brian.d.foy at gmail.com Mon Feb 20 16:15:12 2006 From: brian.d.foy at gmail.com (brian d foy) Date: Mon, 20 Feb 2006 18:15:12 -0600 Subject: [Chicago-talk] Shortening a module name In-Reply-To: <200602201654.55723.me@heyjay.com> References: <200602201146.27932.me@heyjay.com> <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> <200602201654.55723.me@heyjay.com> Message-ID: <2715accf0602201615i5d1b37d2ga751af25e8ff0ab6@mail.gmail.com> On 2/20/06, Jay Strauss wrote: > > You can make a contract part of the TWS object (whatever that is) > > using a has-a relationship. In Finance::InteractiveBrokers::TWS, you > > have a contract() method that returns the contract object. That then > > allows you to do the method chaining that you want. > > I don't think I follow you here. The main thing the user needs to do is ->new > these objects. Are you saying somehow return the class that can be new'd? > If so will you show me a code example? Basically, you use Finance::Interactive::TWS as a controller object. It keeps track of everything and the user interacts with everything through it. Behind the scenes you can have plug-ins, dispatchers, delegates, or whatever you need to get the right objects to do the right thing. Some CPAN modules handle this sort of thing for you, but in general they are as much wrok as doing it yourself. In your Finance::Interactive::TWS constructor, you set up everything. Your object contains the contract object. sub new { my( $class, @args ) = @_; my $self = {}; # or whatever; bless $self, $class; $self->{_contract} = Finance::Interactive::TWS::blah::blah:blah->new( @args ); $self; } Then, to get the contract object, you have a simple accessor (how ever you want to make that). sub contract { my $self = shift; return $self->{_contract} } In your user script, use Finance::Interactive::TWS; my $money = Finance::Interactive::TWS->new( ... ); # this gets the contract object and calls a method on it my $whatever = $money->contract->method_name(); -- brian d foy http://www.pair.com/~comdog/ From lembark at wrkhors.com Mon Feb 27 10:05:55 2006 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 27 Feb 2006 13:05:55 -0500 Subject: [Chicago-talk] Shortening a module name In-Reply-To: <200602201717.46400.me@heyjay.com> References: <200602201146.27932.me@heyjay.com> <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> <200602201717.46400.me@heyjay.com> Message-ID: > Maybe you meant: > > sub contract { > return "Finance::InteractiveBrokers::TWS::com::ib::client::Contract"; > } > > and then later > > $tws->contract->new(); > > which works, I didn't know you could do it like that What about just using a variable to store the class in a variable? my $class = 'Some::Very::Long::Pacakge::Class::You::Want::To::Use::Here'; my $obj = $class->constructor( @argz ); -- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 lembark at wrkhors.com 1 888 359 3508 From merlyn at stonehenge.com Mon Feb 27 11:24:23 2006 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: 27 Feb 2006 11:24:23 -0800 Subject: [Chicago-talk] Shortening a module name In-Reply-To: References: <200602201146.27932.me@heyjay.com> <2715accf0602201231g6c7eaaa2q5771e839f2bb578f@mail.gmail.com> <200602201717.46400.me@heyjay.com> Message-ID: <86zmkcy594.fsf@blue.stonehenge.com> >>>>> "Steven" == Steven Lembark writes: Steven> What about just using a variable to store the class in Steven> a variable? Steven> my $class = Steven> 'Some::Very::Long::Pacakge::Class::You::Want::To::Use::Here'; Steven> my $obj = $class->constructor( @argz ); that's a step in the wrong direction. If you make it a method, you can override it in a subclass, which is a Good Thing. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From NStowe at ThorntonTomasetti.com Mon Feb 27 12:06:08 2006 From: NStowe at ThorntonTomasetti.com (Stowe, Nola) Date: Mon, 27 Feb 2006 14:06:08 -0600 Subject: [Chicago-talk] CitConf - Continuous Integration and Testing Conference (its fre e) Message-ID: http://www.citconf.com/ Overview Jeffrey Fredrick and Paul Julius are cohosting an event that will focus on the topics of Continuous Integration and Testing. The event will use OpenSpaces to structure conversation, understanding and innovation. * What: OpenSpace event discussing all aspects of CI and Testing, together * Where: Chicago, IL * When: April 7 & 8, 2006 * Who: Everyone interested in CI and Testing * Cost: Free People from all manner of projects and places are invited. Pass an invitation along to anyone that you think will be interested. In order to finalize the details of time and place we need to get a feel for how many people are likely to attend. If you are interested in attending please join the CITCON mailing list. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> The information in this email and any attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from the addressee. If you are not the intended addressee, please notify the sender immediately, and delete this message. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> From me at heyjay.com Mon Feb 27 18:31:48 2006 From: me at heyjay.com (Jay Strauss) Date: Mon, 27 Feb 2006 20:31:48 -0600 Subject: [Chicago-talk] Why do I need "use" Message-ID: <200602272031.48502.me@heyjay.com> Hi, there was a message on the DBI user list, where the guy wanted to know how to solve: Can't locate object method "connect" via package "DBI" (perhaps you forgot to load "DBI"?) at... My question is: Why do you have to use "use"? Perl is so forgiving in many cases, and you can load modules at runtime. Why doesn't Perl just automatically load modules it discovers in the source? Jay From brian.d.foy at gmail.com Mon Feb 27 18:49:50 2006 From: brian.d.foy at gmail.com (brian d foy) Date: Mon, 27 Feb 2006 20:49:50 -0600 Subject: [Chicago-talk] Why do I need "use" In-Reply-To: <200602272031.48502.me@heyjay.com> References: <200602272031.48502.me@heyjay.com> Message-ID: <2715accf0602271849r356ec65bkeb558dca369323b2@mail.gmail.com> On 2/27/06, Jay Strauss wrote: > My question is: Why do you have to use "use"? Perl is so forgiving in many > cases, and you can load modules at runtime. Why doesn't Perl just > automatically load modules it discovers in the source? There is Class:Autouse if you want that sort of behavior. Otherwise, Larry's answer to these sorts of things has been "Because." :) -- brian d foy http://www.pair.com/~comdog/ From me at heyjay.com Tue Feb 28 05:52:13 2006 From: me at heyjay.com (Jay Strauss) Date: Tue, 28 Feb 2006 07:52:13 -0600 Subject: [Chicago-talk] Why do I need "use" In-Reply-To: <2715accf0602271849r356ec65bkeb558dca369323b2@mail.gmail.com> References: <200602272031.48502.me@heyjay.com> <2715accf0602271849r356ec65bkeb558dca369323b2@mail.gmail.com> Message-ID: <200602280752.13856.me@heyjay.com> > There is Class:Autouse if you want that sort of behavior. Otherwise, > Larry's answer to these sorts of things has been "Because." :) seems reasonable :) Jay