in reply to jar like feature
You could do:
# use File::Spec if you want to be more portable. # The following supports at least unix and Windows. $dir = ($0 =~ m#^(.*[\\/:])# ? $1 : ''); my $logo = $main->Photo(-file=>$dir."samsunglogo.gif");
or
# use File::Spec if you want to be more portable. # The following supports at least unix and Windows. chdir($1) if ($0 =~ m#^(.*[\\/:])#); my $logo = $main->Photo(-file=>"samsunglogo.gif");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: jar like feature
by TedPride (Priest) on Sep 21, 2004 at 20:09 UTC | |
by ikegami (Patriarch) on Sep 21, 2004 at 20:12 UTC | |
by Anonymous Monk on Sep 22, 2004 at 02:35 UTC | |
by ikegami (Patriarch) on Sep 22, 2004 at 04:06 UTC | |
by Anonymous Monk on Sep 22, 2004 at 09:03 UTC |