in reply to Re^2: Possible Improvement to Shell.pm
in thread Possible Improvement to Shell.pm
What happens if you have two commands that get 'perlified' to the same name?
use Shell 'foo.bar', 'foo-bar';
Perhaps the import should die in that case. To accomodate this need, perhaps you could allow an explicit mapping?
use Shell # Command # sub name ['foo.bar' => 'foo_dot_bar' ], [ 'foo-bar' => 'foo_dash_bar'], [ $^O =~ /Windows/ ? 'copy' : 'cp' => 'cp' ];
TGI says moo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Possible Improvement to Shell.pm
by plobsing (Friar) on Jul 08, 2008 at 22:32 UTC | |
by TGI (Parson) on Jul 09, 2008 at 02:37 UTC |