From andy at petdance.com Thu Dec 1 10:45:14 2011 From: andy at petdance.com (Andy Lester) Date: Thu, 1 Dec 2011 12:45:14 -0600 Subject: [Pdx-pm] What am I doing wrong? In-Reply-To: <2A85392715B78D4E87D89D4AD8199C0E0E6A77158F@W0803.EducationNorthWest.Local> References: <2A85392715B78D4E87D89D4AD8199C0E0E6A77158F@W0803.EducationNorthWest.Local> Message-ID: On Nov 30, 2011, at 11:14 AM, Art Burke wrote: > $v1 = 6; > $v2 = 7; > print (($v1*$v2), "\n"); > You need to say my $v1 and my $v2. The $a and $b version works because $a and $b are magic global variables that you are reusing. xoxo, Andy -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshua at keroes.com Thu Dec 1 11:01:22 2011 From: joshua at keroes.com (Joshua Keroes) Date: Thu, 1 Dec 2011 11:01:22 -0800 Subject: [Pdx-pm] What am I doing wrong? In-Reply-To: <2A85392715B78D4E87D89D4AD8199C0E0E6A77158F@W0803.EducationNorthWest.Local> References: <2A85392715B78D4E87D89D4AD8199C0E0E6A77158F@W0803.EducationNorthWest.Local> Message-ID: "use strict" will complain when you use a new variable; that is, a variable that you haven't predeclared using the "my" keyboard. This is well and good and leads to better code. The first program probably works because $a and $b are special: they're predeclared for use by the sort() function. $v1 and $v2 in the second program are not. In all cases, you want to replace your variable declarations ($this = "that") with a definition and declaration (my $this = "that") - and that goes for both programs. -Joshua 2011/11/30 Art Burke > I just installed ActivePerl and am trying it out. **** > > ** ** > > This runs fine:**** > > ** ** > > #!/usr/bin/perl**** > > ** ** > > use 5.006;**** > > use strict;**** > > use warnings;**** > > ** ** > > $a = 6;**** > > $b = 7;**** > > print (($a*$b), "\n");**** > > ** ** > > The script below fails with a message that ?Global symbol ?$v1? requires > explicit package name ??. Could someone tell me what I am doing wrong?**** > > ** ** > > #!/usr/bin/perl**** > > ** ** > > use 5.006;**** > > use strict;**** > > use warnings;**** > > ** ** > > $v1 = 6;**** > > $v2 = 7;**** > > print (($v1*$v2), "\n");**** > > ** ** > > Thanks!**** > > Art**** > > _______________________________________**** > > Arthur J. Burke**** > > Senior Methodology Advisor**** > > Education Northwest**** > > 101 SW Main St, Suite 500**** > > Portland OR 97204-3213**** > > Art.Burke at educationnorthwest.org**** > > Phone: 503-275-9592**** > > http://educationnorthwest.org**** > > ** ** > > Need help finding evidence-based answers to questions about education > practices, policies, or programs? Take advantage of our *free reference > desk service *offered by our *REL Northwest* project. Contact > Jennifer Klump at http://askarel.org/northwest for prompt, authoritative, > and customized answers to your questions. **** > > ** ** > > ** ** > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schwern at pobox.com Thu Dec 1 11:57:05 2011 From: schwern at pobox.com (Michael G Schwern) Date: Thu, 01 Dec 2011 11:57:05 -0800 Subject: [Pdx-pm] What am I doing wrong? In-Reply-To: <2A85392715B78D4E87D89D4AD8199C0E0E6A77158F@W0803.EducationNorthWest.Local> References: <2A85392715B78D4E87D89D4AD8199C0E0E6A77158F@W0803.EducationNorthWest.Local> Message-ID: <4ED7DC11.7060908@pobox.com> On 2011.11.30 9:14 AM, Art Burke wrote: > The script below fails with a message that ?Global symbol ?$v1? requires > explicit package name ??. Could someone tell me what I am doing wrong? In addition to what others have said, the perlintro tutorial discusses why you need to declare variables. http://perldoc.perl.org/perlintro.html -- You are wicked and wrong to have broken inside and peeked at the implementation and then relied upon it. -- tchrist in <31832.969261130 at chthon> From enobacon at gmail.com Thu Dec 1 17:45:35 2011 From: enobacon at gmail.com (Seven till Seven) Date: Thu, 1 Dec 2011 17:45:35 -0800 Subject: [Pdx-pm] Ingy on Pegex: Perl 6 Grammar Everywhere -- December 8th meeting in one week Message-ID: <201112011745.36173.enobacon@gmail.com> Thu. December 8th, 6:53pm at FreeGeek ? 1731 SE 10th Ave. topic: Pegex speaker: Ingy d?t Net Acmeism (http://acmeism.org) is the ability to think about and express one's creative ideas, beyond language borders. In programming, this means creating things that benefit multiple languages and communities. Perl is effectively one great community with 2 great languages (Perl 5 and Perl 6). Acmeism is essential to mongers, but kindly extends to pythonistas, brigadiers and nodelings as well. Pegex is an Acmeist parsing language. Think of it as Perl 6 Rules and Regexp::Grammars for all programmers. Write One Grammar, Parse Everywhere. This makes Pegex the quintessential tool in the Acmeist's belt. Pegex.pm is fully functional in Perl 5, and working it's way across the Acmeist landscape. Come see Ingy d?t Net (an inventor of YAML and the father of Acmeism) talk about Pegex and the exciting future of Acmeism. Ingy d?t Net - http://ingy.net/ As usual, the meeting will be followed by social hour at the Lucky Lab. -- http://pdx.pm.org From ben.hengst at gmail.com Mon Dec 5 12:49:27 2011 From: ben.hengst at gmail.com (benh) Date: Mon, 5 Dec 2011 12:49:27 -0800 Subject: [Pdx-pm] Fwd: UG News: New Courses and Big Savings - 30% Off HTML5, C# .NET, and All Certificates In-Reply-To: <1323117870.13892.0.669001@post.oreilly.com> References: <1323117870.13892.0.669001@post.oreilly.com> Message-ID: ---------- Forwarded message ---------- From: Marsee Henon & Jon Johns Date: Mon, Dec 5, 2011 at 12:44 Subject: UG News: New Courses and Big Savings - 30% Off HTML5, C# .NET, and All Certificates To: ben.hengst+oreilly at gmail.com ** View in browser . *Forward this announcement to your user group or a friend* [image: O'Reilly School of Technology - New Online Courses] * Learn More in the New Year * *Get Started Now and Save 30% on All Courses & Certificates* Until December 31st, enroll in ANY online OST course, and *save 30%* ? not valid with any other offer. [image: Marty Hines] *"I am now a web developer for a small pharmaceutical company, and I love it. I know I have O'Reilly School of Technology to thank for that." ?Marty Hines* [image: New HTML5 Online Course] [image: New C#.NET 1 Online Course] [image: New C#.NET 2 Online Course] *Linux/Unix Admin Certificate* You'll gain advanced system administration skills, practical experience -- and a portfolio that's sure to impress employers. [image: Enroll Now and Save] *Python Programming Certificate* As you progress through the this certificate series, you'll become steadily more proficient at this versatile and popular language. [image: Enroll Now and Save] *Perl Programming Certificate* Be ready for anything -- Perl is used in almost all aspects of IT. The Perl certificate series takes you from zero Perl knowledge to an advanced level that includes use and creation of objects and reusable code. [image: Enroll Now and Save] *Web Programming Certificate* Make web pages. Awesome web pages. Complete beginner? No problem. Work at your own pace, and when you're done, you'll have some amazing websites to showcase your newfound skills to potential employers. [image: Enroll Now and Save] *More Courses and Certificates >* Share this deal: [image: Facebook] [image: Tweet] [image: Forward to Friend] You are receiving this email because you are a User Group contact with O'Reilly Media. Forward this announcement. If you would like to stop receiving these newsletters or announcements from O'Reilly, send an email to *usergroups at oreilly.com* . O'Reilly Media, Inc. 1005 Gravenstein Highway North, Sebastopol, CA 95472 (707) 827-7000 -- benh~ http://about.notbenh.info -------------- next part -------------- An HTML attachment was scrubbed... URL: From zak.zebrowski at gmail.com Mon Dec 5 13:04:55 2011 From: zak.zebrowski at gmail.com (Zachary Zebrowski) Date: Mon, 5 Dec 2011 16:04:55 -0500 Subject: [Pdx-pm] Hi - podcasts Message-ID: Hello Portland Perl Group, Hope all is well. I recently added the DC Perl Monks Podcast to the iTunes podcast directory, and I found your podcast. Unfortunately, when I tried to download the first episode, I got an error message, that the server was unavailable. Will this be made available again? :-) Best, Zak -------------- next part -------------- An HTML attachment was scrubbed... URL: From enobacon at gmail.com Tue Dec 6 18:11:31 2011 From: enobacon at gmail.com (Eric Wilhelm) Date: Tue, 6 Dec 2011 18:11:31 -0800 Subject: [Pdx-pm] Hi - podcasts In-Reply-To: References: Message-ID: <201112061811.31484.enobacon@gmail.com> # from Zachary Zebrowski # on Monday 05 December 2011 13:04: >I recently added the DC Perl Monks Podcast to the iTunes podcast > directory, and I found your podcast. ?Unfortunately, when I tried to > download the first episode, I got an error message, that the server > was unavailable. Will this be made available again? :-) Hi Zak, I'm not sure where the iTunes entry came from or how to fix/remove it. The old podcast server is down and they currently live here. http://pdxpm.enobacon.com/ --Eric -- The opinions expressed in this e-mail were randomly generated by the computer and do not necessarily reflect the views of its owner. --Management --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- From enobacon at gmail.com Thu Dec 8 01:39:25 2011 From: enobacon at gmail.com (Seven till Seven) Date: Thu, 8 Dec 2011 01:39:25 -0800 Subject: [Pdx-pm] tonight: Ingy on Pegex -- Perl 6 Grammar Everywhere Message-ID: <201112080139.25870.enobacon@gmail.com> Thu. December 8th, 6:53pm at FreeGeek ? 1731 SE 10th Ave. topic: Pegex speaker: Ingy d?t Net Acmeism (http://acmeism.org) is the ability to think about and express one's creative ideas, beyond language borders. In programming, this means creating things that benefit multiple languages and communities. Perl is effectively one great community with 2 great languages (Perl 5 and Perl 6). Acmeism is essential to mongers, but kindly extends to pythonistas, brigadiers and nodelings as well. Pegex is an Acmeist parsing language. Think of it as Perl 6 Rules and Regexp::Grammars for all programmers. Write One Grammar, Parse Everywhere. This makes Pegex the quintessential tool in the Acmeist's belt. Pegex.pm is fully functional in Perl 5, and working it's way across the Acmeist landscape. Come see Ingy d?t Net (an inventor of YAML and the father of Acmeism) talk about Pegex and the exciting future of Acmeism. Ingy d?t Net - http://ingy.net/ As usual, the meeting will be followed by social hour at the Lucky Lab. -- http://pdx.pm.org From enobacon at gmail.com Fri Dec 9 00:42:57 2011 From: enobacon at gmail.com (The Dread Parrot) Date: Fri, 9 Dec 2011 00:42:57 -0800 Subject: [Pdx-pm] Fwd: Winter Coders' Social: Tuesday, December 13, 6-10pm at Urban Airship Message-ID: <201112090042.57840.enobacon@gmail.com> ---------- Forwarded Message: ---------- * WHEN: Tuesday, December 13, 2011 from 6?10pm * WHERE: Urban Airship, 334 NW 11th Avenue, Portland, OR 97209 * POTLUCK: Signup at Join Portland's tech community in celebrating the end of another year. This is a fun, free annual event where members of local user groups and their families are invited to mingle, eat and play games. This is the fifth time the event's been held and it's lots of fun every time. We'll have a potluck, so you're welcome to bring something yummy to share with others. If possible, label your food and whether it meets particular dietary needs, e.g. "vegan", "vegetarian", gluten-free", etc. If you'd like, tell others what you plan to bring, or see what others are bringing at . We'll provide beverages, plates, cups, utensils and napkins. Like games? Bring your favorites and play them with others. We'll have some rooms with tables set aside. Have an activity or contest that you'd like to organize? Join the discussion at . Please spread the word, all are welcome. See you there! THANKS! We're grateful to Urban Airship , Emma , ShopIgniter and Portland Incubator Experiment (PIE) for sponsoring this event. From michael at jamhome.us Wed Dec 21 11:31:58 2011 From: michael at jamhome.us (Michael R) Date: Wed, 21 Dec 2011 11:31:58 -0800 (PST) Subject: [Pdx-pm] Unexpected math result Message-ID: <52627.170.135.112.14.1324495918.squirrel@mail.jamhome.us> (Disclaimer:? cross post from perlmonks) ?mikeraz at hive:~> perl -e 'my $x = (.0425 * 2) + .0025; print $x - (.0425 * 2) - .0025, $/;' ?2.16840434497101e-18 ?mikeraz at hive:~> Silly me would expect something like 0 to be printed. Why the 2.16840434497101e-18? (OK, round it off and you have 0, but ....) WT_? -- Michael Rasmussen http://www.jamhome.us/ Be Appropriate && Follow Your Curiosity -------------- next part -------------- An HTML attachment was scrubbed... URL: From chromatic at wgz.org Wed Dec 21 11:34:23 2011 From: chromatic at wgz.org (chromatic) Date: Wed, 21 Dec 2011 11:34:23 -0800 Subject: [Pdx-pm] Unexpected math result In-Reply-To: <52627.170.135.112.14.1324495918.squirrel@mail.jamhome.us> References: <52627.170.135.112.14.1324495918.squirrel@mail.jamhome.us> Message-ID: <201112211134.23929.chromatic@wgz.org> On Wednesday, December 21, 2011 at 11:31 AM, Michael R wrote: > Silly me would expect something like 0 to be printed. Why the > 2.16840434497101e-18? (OK, round it off and you have 0, but ....) This is a feature of how computers usually represent floating point numbers. perlfaq4 points to David Goldberg's "What Every Computer Scientist Should Know About Floating-Point Arithmetic" at: http://web.cse.msu.edu/~cse320/Documents/FloatingPoint.pdf The short of it is that you can't represent certain fractional components precisely with a powers-of-two representation. -- c From michael at jamhome.us Wed Dec 21 11:47:22 2011 From: michael at jamhome.us (Michael R) Date: Wed, 21 Dec 2011 11:47:22 -0800 (PST) Subject: [Pdx-pm] Unexpected math result In-Reply-To: <52627.170.135.112.14.1324495918.squirrel@mail.jamhome.us> References: <52627.170.135.112.14.1324495918.squirrel@mail.jamhome.us> Message-ID: <53357.170.135.112.14.1324496842.squirrel@mail.jamhome.us> Nevermind, found the FAQ. (asking questions remains the single greatest means of finding answers after you've exposed your ignorance to the world) Michael R wrote: > > > (Disclaimer:? cross post from perlmonks) > > > ?mikeraz at hive:~> perl -e 'my $x = > (.0425 * 2) + .0025; print $x - (.0425 * 2) - .0025, $/;' > > ?2.16840434497101e-18 > ?mikeraz at hive:~> > > > Silly me would expect something like 0 to be printed. Why the > 2.16840434497101e-18? (OK, round it off and you have 0, but ....) > > WT_? > > -- > Michael Rasmussen > > http://www.jamhome.us/ > Be Appropriate && Follow Your Curiosity > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list -- Michael Rasmussen http://www.jamhome.us/ Be Appropriate && Follow Your Curiosity -------------- next part -------------- An HTML attachment was scrubbed... URL: From enobacon at gmail.com Sat Dec 24 13:09:55 2011 From: enobacon at gmail.com (Eric Wilhelm) Date: Sat, 24 Dec 2011 13:09:55 -0800 Subject: [Pdx-pm] [job] Fwd: Perl Positions at PCD Group Message-ID: <201112241309.55870.enobacon@gmail.com> ---------- Forwarded Message: ---------- From: Eric Cook ... We are expecting a lot of developer hiring in 2012. http://www.linkedin.com/company/pcd-group/careers http://portland.craigslist.org/mlt/eng/2766060075.html http://portland.craigslist.org/mlt/eng/2766069843.html http://portland.craigslist.org/mlt/eng/2766095332.html Let me know if you have any questions and feel free to pass this info along if you know anybody interested. Happy Holidays ______________________________________________________ Eric Cook PHR, Operations & Human Resource Manager Phone: 503.525.2989 * Fax: 503.226.7668 * ecook at pcdgroup.com 1650 NW Naito Pkwy, Suite 300 * Portland, Oregon 97209 * www.pcdgroup.com From enobacon at gmail.com Sat Dec 24 13:11:53 2011 From: enobacon at gmail.com (Eric Wilhelm) Date: Sat, 24 Dec 2011 13:11:53 -0800 Subject: [Pdx-pm] Fwd: Last Chance for Early Bird Registration! ($195 ends 12/31) Message-ID: <201112241311.53363.enobacon@gmail.com> ---------- Forwarded Message: ---------- Subject: Last Chance for Early Bird Registration! ($195 ends 12/31) Date: Wednesday 14 December 2011 From: Open Source Bridge Register for next year's Open Source Bridge conference at an amazing early bird discount price! Treat yourself or a fellow open source citizen to a pass at http://stumptownsyndicate.us2.list- manage.com/track/click?u=46d72c6c2733a75b61cfcf5ad&id=5d3b6d7ad4&e=b7e3f4f15f As a special bonus, we'll send Open Source Bridge scarves (photo: http://stumptownsyndicate.us2.list- manage1.com/track/click?u=46d72c6c2733a75b61cfcf5ad&id=6c8cb3f774&e=b7e3f4f15f) to the first 10 people who register starting today, December 14th, through the end of the year. Now in its 4th year, the conference will be in Portland, OR from June 26-29, 2012. The $195 early registration fee is available through December 31st. The conference includes 3 full days of sessions across multiple tracks, an unconference day, a Hacker Lounge, after parties, code sprints, work parties, and renowned keynote speakers. Also, get ready to submit your talk ideas! Open Source Bridge's Call for Proposals opens Monday, January 17th. For more information about Open Source Bridge, past conferences, or the track schedule format, visit http://stumptownsyndicate.us2.list-manage.com/track/click?u=46d72c6c2733a75b61cfcf5ad&id=3f2a322b46&e=b7e3f4f15f Act now to save over $100 off regular admission! http://stumptownsyndicate.us2.list- manage.com/track/click?u=46d72c6c2733a75b61cfcf5ad&id=f17b6ff06a&e=b7e3f4f15f Happy Holidays! -- Open Source Bridge From enobacon at gmail.com Thu Dec 29 21:22:42 2011 From: enobacon at gmail.com (Eric Wilhelm) Date: Thu, 29 Dec 2011 21:22:42 -0800 Subject: [Pdx-pm] January Meeting in 2 weeks -- AMGSP2012 (Schwern rides a pail Moose) Message-ID: <201112292122.43039.enobacon@gmail.com> Hi all, 2012 is almost here, and that means it's time for the 7th-ish Annual-ish Michael G Schwern pdx.pm Presentation Presentation details to be determined. (Rumored to be about small, furry creatures with antlers aka OOSE.) http://pdx.pm.org/kwiki/?January2012Meeting As usual, the meeting will be followed by social hour at the Lucky Lab.