Programming-Idioms

History of Idiom 162 > diff from v10 to v11

Edit summary for version 11 :
New Perl implementation by user [daxim]

Version 10

2019-09-26, 15:55:27

Version 11

2019-09-28, 09:20:51

Idiom #162 Execute procedures depending on options

execute bat if b is a program option and fox if f is a program option.

Idiom #162 Execute procedures depending on options

execute bat if b is a program option and fox if f is a program option.

Code
for (@ARGV) {
    use experimental 'switch';
    bat when 'b';
    fox when 'f';
}
Doc URL
http://p3rl.org/var#@ARGV