in reply to default option
#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; use Getopt::Long; GetOptions( 'x=s' => \(my $x = 'X'), 'y=s' => \(my $y = 'Y'), ); say "$x|$y";
Example session:
$ 1.pl X|Y $ 1.pl -x abc abc|Y $ 1.pl -y def X|def $ 1.pl -x abc -y ghi abc|ghi
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: default option
by Discipulus (Canon) on Apr 12, 2016 at 20:02 UTC |