ä¸ã«libã¨ãã¤ãã£ã¦ããã«ãããèªä½pmãuseããã¨ããç¸å¯¾ãã¹ã§å¼ã³åºãã¦ãã¾ãã¨å®è¡ãã£ã¬ã¯ããªãéãå ´åï¼cronã§ã¾ããããã¨ãï¼ã«é½åãæªãã£ãããã¾ãã ããã§ã以ä¸ã®ããã«BEGINãããã¯å ã§ã¹ã¯ãªããèªèº«ã®ãã¹ãã¨ã£ã¦ãã¦ããuse libã¨ããã¦ããã§ããããã®ããæ¹ããããã£ããããªããã ããããããããã£ã¨ããããæ¹ãããã¨ãããã°ãã²ãæãä¸ããã â main.pl â lib â Hoge â Foo.pm#!/usr/bin/perl use strict; use warnings; use File::Basename; my $w_dir; BEGIN { $w_dir = dirname $ENV{_} } use lib "$w_dir/lib"; use Hoge::Foo; my $foo = Hoge::Foo->new("tester0
{{#tags}}- {{label}}
{{/tags}}