Suche senden
Hochladen
The Joy of Smartmatch
•
0 gefällt mir
•
1,225 views
A
Andrew Shitov
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 23
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Perl6 in-production
Perl6 in-production
Andrew Shitov
Perl6 grammars
Perl6 grammars
Andrew Shitov
Perl 6 by example
Perl 6 by example
Andrew Shitov
The Perl6 Type System
The Perl6 Type System
abrummett
Creating a compiler in Perl 6
Creating a compiler in Perl 6
Andrew Shitov
I, For One, Welcome Our New Perl6 Overlords
I, For One, Welcome Our New Perl6 Overlords
heumann
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
Andrew Shitov
Perl6 Regexen: Reduce the line noise in your code.
Perl6 Regexen: Reduce the line noise in your code.
Workhorse Computing
Empfohlen
Perl6 in-production
Perl6 in-production
Andrew Shitov
Perl6 grammars
Perl6 grammars
Andrew Shitov
Perl 6 by example
Perl 6 by example
Andrew Shitov
The Perl6 Type System
The Perl6 Type System
abrummett
Creating a compiler in Perl 6
Creating a compiler in Perl 6
Andrew Shitov
I, For One, Welcome Our New Perl6 Overlords
I, For One, Welcome Our New Perl6 Overlords
heumann
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
Andrew Shitov
Perl6 Regexen: Reduce the line noise in your code.
Perl6 Regexen: Reduce the line noise in your code.
Workhorse Computing
Learning Perl 6
Learning Perl 6
brian d foy
Perl 6 for Concurrency and Parallel Computing
Perl 6 for Concurrency and Parallel Computing
Andrew Shitov
Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)
brian d foy
Perl 6 in Context
Perl 6 in Context
lichtkind
Hypers and Gathers and Takes! Oh my!
Hypers and Gathers and Takes! Oh my!
Workhorse Computing
Electrify your code with PHP Generators
Electrify your code with PHP Generators
Mark Baker
Wx::Perl::Smart
Wx::Perl::Smart
lichtkind
Perl6 one-liners
Perl6 one-liners
Andrew Shitov
Good Evils In Perl (Yapc Asia)
Good Evils In Perl (Yapc Asia)
Kang-min Liu
Nubilus Perl
Nubilus Perl
Flavio Poletti
Simple Ways To Be A Better Programmer (OSCON 2007)
Simple Ways To Be A Better Programmer (OSCON 2007)
Michael Schwern
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Workhorse Computing
Perl Web Client
Perl Web Client
Flavio Poletti
Adventures in Optimization
Adventures in Optimization
David Golden
Introdução ao Perl 6
Introdução ao Perl 6
garux
Advanced Perl Techniques
Advanced Perl Techniques
Dave Cross
BSDM with BASH: Command Interpolation
BSDM with BASH: Command Interpolation
Workhorse Computing
Metadata-driven Testing
Metadata-driven Testing
Workhorse Computing
Looping the Loop with SPL Iterators
Looping the Loop with SPL Iterators
Mark Baker
Introduction to Perl
Introduction to Perl
worr1244
Good Evils In Perl
Good Evils In Perl
Kang-min Liu
R版Getopt::Longを作ってみた
R版Getopt::Longを作ってみた
Takeshi Arabiki
Weitere ähnliche Inhalte
Was ist angesagt?
Learning Perl 6
Learning Perl 6
brian d foy
Perl 6 for Concurrency and Parallel Computing
Perl 6 for Concurrency and Parallel Computing
Andrew Shitov
Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)
brian d foy
Perl 6 in Context
Perl 6 in Context
lichtkind
Hypers and Gathers and Takes! Oh my!
Hypers and Gathers and Takes! Oh my!
Workhorse Computing
Electrify your code with PHP Generators
Electrify your code with PHP Generators
Mark Baker
Wx::Perl::Smart
Wx::Perl::Smart
lichtkind
Perl6 one-liners
Perl6 one-liners
Andrew Shitov
Good Evils In Perl (Yapc Asia)
Good Evils In Perl (Yapc Asia)
Kang-min Liu
Nubilus Perl
Nubilus Perl
Flavio Poletti
Simple Ways To Be A Better Programmer (OSCON 2007)
Simple Ways To Be A Better Programmer (OSCON 2007)
Michael Schwern
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Workhorse Computing
Perl Web Client
Perl Web Client
Flavio Poletti
Adventures in Optimization
Adventures in Optimization
David Golden
Introdução ao Perl 6
Introdução ao Perl 6
garux
Advanced Perl Techniques
Advanced Perl Techniques
Dave Cross
BSDM with BASH: Command Interpolation
BSDM with BASH: Command Interpolation
Workhorse Computing
Metadata-driven Testing
Metadata-driven Testing
Workhorse Computing
Looping the Loop with SPL Iterators
Looping the Loop with SPL Iterators
Mark Baker
Introduction to Perl
Introduction to Perl
worr1244
Was ist angesagt?
(20)
Learning Perl 6
Learning Perl 6
Perl 6 for Concurrency and Parallel Computing
Perl 6 for Concurrency and Parallel Computing
Learning Perl 6 (NPW 2007)
Learning Perl 6 (NPW 2007)
Perl 6 in Context
Perl 6 in Context
Hypers and Gathers and Takes! Oh my!
Hypers and Gathers and Takes! Oh my!
Electrify your code with PHP Generators
Electrify your code with PHP Generators
Wx::Perl::Smart
Wx::Perl::Smart
Perl6 one-liners
Perl6 one-liners
Good Evils In Perl (Yapc Asia)
Good Evils In Perl (Yapc Asia)
Nubilus Perl
Nubilus Perl
Simple Ways To Be A Better Programmer (OSCON 2007)
Simple Ways To Be A Better Programmer (OSCON 2007)
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Neatly Hashing a Tree: FP tree-fold in Perl5 & Perl6
Perl Web Client
Perl Web Client
Adventures in Optimization
Adventures in Optimization
Introdução ao Perl 6
Introdução ao Perl 6
Advanced Perl Techniques
Advanced Perl Techniques
BSDM with BASH: Command Interpolation
BSDM with BASH: Command Interpolation
Metadata-driven Testing
Metadata-driven Testing
Looping the Loop with SPL Iterators
Looping the Loop with SPL Iterators
Introduction to Perl
Introduction to Perl
Ähnlich wie The Joy of Smartmatch
Good Evils In Perl
Good Evils In Perl
Kang-min Liu
R版Getopt::Longを作ってみた
R版Getopt::Longを作ってみた
Takeshi Arabiki
Groovy
Groovy
Zen Urban
Perl Bag of Tricks - Baltimore Perl mongers
Perl Bag of Tricks - Baltimore Perl mongers
brian d foy
Introduction to Perl
Introduction to Perl
NBACriteria2SICET
Lucene
Lucene
Matt Wood
Security Challenges in Node.js
Security Challenges in Node.js
Websecurify
Modern Perl
Modern Perl
Marcos Rebelo
Advance Techniques In Php
Advance Techniques In Php
Kumar S
Bag of tricks
Bag of tricks
brian d foy
Perl Sucks - and what to do about it
Perl Sucks - and what to do about it
2shortplanks
Perl6 a whistle stop tour
Perl6 a whistle stop tour
Simon Proctor
Perl6 a whistle stop tour
Perl6 a whistle stop tour
Simon Proctor
AST - the only true tool for building JavaScript
AST - the only true tool for building JavaScript
Ingvar Stepanyan
PHP Conference Asia 2016
PHP Conference Asia 2016
Britta Alex
Practical Testing of Ruby Core
Practical Testing of Ruby Core
Hiroshi SHIBATA
Wakanday JS201 Best Practices
Wakanday JS201 Best Practices
Juergen Fesslmeier
Useful javascript
Useful javascript
Lei Kang
Evolving Tests
Evolving Tests
Jeffrey Ryan Thalhammer
Power shell voor developers
Power shell voor developers
Dennis Vroegop
Ähnlich wie The Joy of Smartmatch
(20)
Good Evils In Perl
Good Evils In Perl
R版Getopt::Longを作ってみた
R版Getopt::Longを作ってみた
Groovy
Groovy
Perl Bag of Tricks - Baltimore Perl mongers
Perl Bag of Tricks - Baltimore Perl mongers
Introduction to Perl
Introduction to Perl
Lucene
Lucene
Security Challenges in Node.js
Security Challenges in Node.js
Modern Perl
Modern Perl
Advance Techniques In Php
Advance Techniques In Php
Bag of tricks
Bag of tricks
Perl Sucks - and what to do about it
Perl Sucks - and what to do about it
Perl6 a whistle stop tour
Perl6 a whistle stop tour
Perl6 a whistle stop tour
Perl6 a whistle stop tour
AST - the only true tool for building JavaScript
AST - the only true tool for building JavaScript
PHP Conference Asia 2016
PHP Conference Asia 2016
Practical Testing of Ruby Core
Practical Testing of Ruby Core
Wakanday JS201 Best Practices
Wakanday JS201 Best Practices
Useful javascript
Useful javascript
Evolving Tests
Evolving Tests
Power shell voor developers
Power shell voor developers
Mehr von Andrew Shitov
Fun with Raspberry PI (and Perl)
Fun with Raspberry PI (and Perl)
Andrew Shitov
Параллельные вычисления в Perl 6
Параллельные вычисления в Perl 6
Andrew Shitov
AllPerlBooks.com
AllPerlBooks.com
Andrew Shitov
YAPC::Europe 2013
YAPC::Europe 2013
Andrew Shitov
Perl 7, the story of
Perl 7, the story of
Andrew Shitov
Язык программирования Go для Perl-программистов
Язык программирования Go для Perl-программистов
Andrew Shitov
Как очистить массив
Как очистить массив
Andrew Shitov
What's new in Perl 5.14
What's new in Perl 5.14
Andrew Shitov
Что нового в Perl 5.14
Что нового в Perl 5.14
Andrew Shitov
There's more than one way to empty it
There's more than one way to empty it
Andrew Shitov
How to clean an array
How to clean an array
Andrew Shitov
Perl 5.10 и 5.12
Perl 5.10 и 5.12
Andrew Shitov
Say Perl на весь мир
Say Perl на весь мир
Andrew Shitov
Personal Perl 6 compiler
Personal Perl 6 compiler
Andrew Shitov
Perl 5.10 in 2010
Perl 5.10 in 2010
Andrew Shitov
Perl 5.10 в 2010-м
Perl 5.10 в 2010-м
Andrew Shitov
Gearman and Perl
Gearman and Perl
Andrew Shitov
Откуда узнать про Perl 6
Откуда узнать про Perl 6
Andrew Shitov
42 £ в ойрах
42 £ в ойрах
Andrew Shitov
10 мероприятий за 20 месяцев в пяти странах
10 мероприятий за 20 месяцев в пяти странах
Andrew Shitov
Mehr von Andrew Shitov
(20)
Fun with Raspberry PI (and Perl)
Fun with Raspberry PI (and Perl)
Параллельные вычисления в Perl 6
Параллельные вычисления в Perl 6
AllPerlBooks.com
AllPerlBooks.com
YAPC::Europe 2013
YAPC::Europe 2013
Perl 7, the story of
Perl 7, the story of
Язык программирования Go для Perl-программистов
Язык программирования Go для Perl-программистов
Как очистить массив
Как очистить массив
What's new in Perl 5.14
What's new in Perl 5.14
Что нового в Perl 5.14
Что нового в Perl 5.14
There's more than one way to empty it
There's more than one way to empty it
How to clean an array
How to clean an array
Perl 5.10 и 5.12
Perl 5.10 и 5.12
Say Perl на весь мир
Say Perl на весь мир
Personal Perl 6 compiler
Personal Perl 6 compiler
Perl 5.10 in 2010
Perl 5.10 in 2010
Perl 5.10 в 2010-м
Perl 5.10 в 2010-м
Gearman and Perl
Gearman and Perl
Откуда узнать про Perl 6
Откуда узнать про Perl 6
42 £ в ойрах
42 £ в ойрах
10 мероприятий за 20 месяцев в пяти странах
10 мероприятий за 20 месяцев в пяти странах
Kürzlich hochgeladen
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Fwdays
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
DianaGray10
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
Raghuram Pandurangan
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
mohitsingh558521
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
LoriGlavin3
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
Nathaniel Shimoni
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
LoriGlavin3
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
blackmambaettijean
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
Kürzlich hochgeladen
(20)
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
The Joy of Smartmatch
1.
The Joy of Smart
Match
2.
The Joy of Smartmatch
3.
The Joy of ~~
4.
Introduced in Perl 5.10
5.
Introduced in 2007
6.
7.
How it was
initially designed
8.
How it is
proposed to be
9.
How it looks
like now no if $] >= 5.018, "experimental::smartmatch";
10.
11.
How I use
it
12.
help() if '-‐-‐help'
~~ @ARGV; Quick command line argument test
13.
someth() if $value
~~ @arr; Quick array element existance test
14.
someth() if grep {$_
== $value} @arr; Better than
15.
someth() if grep {$_
eq $value} @arr; Better than
16.
someth() if grep {$value
=~ $_} @arr; Better than
17.
if ($remote_addr ~~
['12.45.67.99', '59.44.11.33'] ) {...} Quick IP address test
18.
if ([$loaded_user, $editable_user]
~~ [ [ 'OWNER', 'ADMIN'], [['ADMIN', 'OWNER'], 'USER' ] ] ) { $loaded_user-‐>create($editable_user) } Someone's similar usage
19.
sub route {
'/' } URL match test $page-‐>render if $url ~~ $page-‐>route;
20.
sub route {
qr{^/admin/} } URL match test $page-‐>render if $url ~~ $page-‐>route;
21.
~~ is very Perlish
22.
Save the ~~
23.
__END__ Andrew Shitov andy@shitov.ru May
2013
Jetzt herunterladen