From mark at purdue.edu Wed May 4 11:36:46 2016 From: mark at purdue.edu (Mark Senn) Date: Wed, 04 May 2016 14:36:46 -0400 Subject: [Purdue-pm] Perl 6 feed operator Message-ID: <4086.1462387006@pier.ecn.purdue.edu> Purdue Perl Mongers. Below is some Perl 6 code implemented using feed operators and a simple loop. I like the loop below better, Perl 6's dir() has a "test" parameter to automatically grep file names but I don't know how to use it for complicated tests yet and even if I did I wanted space to document things line-by-line. # Read entries from the current directory. # Ignore entries that start with ".". # Ignore non-files. # Ignore non-writable files. # Originally I had this # dir() # ==> grep({$_ !~~ /^\./}) # ==> grep({$_ ~~ :f}) # ==> grep({$_ ~~ :w}) # ==> @entry; # but I like the following better. my @entry = (); for dir() # dir automatically ignores . and .. { (/^\./) and next; # ignore anything else that starts with a . ($_ ~~ :f) or next; # ignore non-files ($_ ~~ :w) or next; # ignore non-writiable files push @entry, $_; } This is for a program called keep. Typing "keep filename" deletes all other files in the current directory unless they start with a . or are non-writable. -mark From jacoby.david at gmail.com Wed May 11 08:31:03 2016 From: jacoby.david at gmail.com (Dave Jacoby) Date: Wed, 11 May 2016 11:31:03 -0400 Subject: [Purdue-pm] Perl Mongers Tonight Message-ID: We're set for 6pm at MatchBox. I'll be talking about DBIx::Class, Perl's ORM, and how I'm beginning to use it. I *think* we'll be me, maybe Derrick and maybe Ken. I know Mark, Broc, Joe and Michael have said no. If I don't get more people showing up, I might hold this talk for later and move directly to GLOSSY Food & Chat. Next meeting will be June 16, which is the week before YAPC::NA. I've hit a personal need. I take a webcam pic at my workstation once an hour and tweet it. I have methods to check if the workstation is locked and have crontab set to M-F 9am-5pm, but I think the better answer would be to use OpenCV to recognize faces and not tweet unless it sees one. So, Ken, could you talk on OpenCV and Perl? July seems ripe for a post-YAPC::NA wrapup. I know GLOSSY's Ed Finkler will be presenting an OSMI talk there, and have asked him if he'd like to talk about his impressions. I don't know that any other Purdue mongers are planning to go, but generally many YAPC talks are available on YouTube during or soon after the event, so we'll be able to talk about interesting presentations even if we don't go. Thoughts? Suggestions? Any volunteers for upcoming talks? -- David Jacoby jacoby.david at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacoby.david at gmail.com Wed May 11 09:57:53 2016 From: jacoby.david at gmail.com (Dave Jacoby) Date: Wed, 11 May 2016 12:57:53 -0400 Subject: [Purdue-pm] July Confirmed Message-ID: I have asked Ed Finkler, organizer of GLOSSY and scheduled speaker at YAPC::NA 2016, to talk about his time at YAPC for July's meeting. -- David Jacoby jacoby.david at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: