http://www.perlmonks.org?node_id=392727

podian has asked for the wisdom of the Perl Monks concerning the following question:

I am developing a GUI using perl/Tk and wondering how I can bundle stuff into one file like Java's jar file. For example, in my application, I have two GIF files, three modules (pm files) and one PDF file. It would be nice if I can bundle all of them into one file and invoke it like this
perl -jar myfile.jar
the reason I am asking this is that if I invoke my application from a different directory, it is not finding my GIF files unless I attach the absolute path to it in my code
my $logo = $main->Photo(-file=>"$dir/samsunglogo.gif");
I can't just say
my $logo = $main->Photo(-file=>"samsunglogo.gif");
and let my application find the file!
Thanks