perl carton
- 写経
$ cat test.pl #!/usr/bin/env perl use strict; use warnings; use Data::UUID; my $uuid = Data::UUID->new; $uuid = $uuid->create_str(); print "UUID is $uuid\n"; $ chmod +x test.pl $ cat cpanfile requires 'Data::UUID' => 1.000; $ perl test.pl Can't locate Data/UUID.pm in @INC ... $ carton Installing modules using /home/ymko/tmp/cpanfile Successfully installed Data-UUID-1.219 1 distribution installed Complete! Modules were installed into /home/ymko/tmp/local $ carton exec -- test.pl Can't exec "test.pl": No such file or directory $ carton exec -- `pwd`/test.pl UUID is 7919EADC-FF80-11E2-B321-F06B603831EE