./prog.pl -o function(key => './path') #### #!/usr/bin/perl use strict; use Getopt::Long; my $option; GetOptions('o=s' =>\$option); eval($option); sub function { my %arg = @_; ... } #### -bash: syntax error near unexpected token `('
## #!/usr/bin/perl use strict; use Getopt::Long; my $option; GetOptions('o=s' =>\$option); eval($option); sub function { my %arg = @_; ... } ##
## -bash: syntax error near unexpected token `('