Re: Prima::tutorial Prima::Utils::find_image example not working on XP and ActivePerl

From: Dmitry Karasik <dmitry_at_karasik.eu.org>
Date: Thu, 10 Apr 2008 07:24:16 +0200
To: "David Christensen" <dpchrist_at_holgerdanske.com>

        Hi David!

On 10 Сав 08 at 06:09, "David" (David Christensen) wrote:

 David> my $f = 'C:\Perl\html\images\activeperl_logo.gif';
 David> warn "cannot read fil '$f'" unless -r $f;
 David> my $i = Prima::Image->load( find_image($f) );

find_image() is needed when the explicit path to the file is not
known, if the file in question comes with your module distribution
and is installed somewhere deeply in perl tree. If you already have
the path, call load($f) directly.

find_image() won't work with full path; note that in the example
the path is also not fully qualified.

-- 
Sincerely,
	Dmitry Karasik
Received on Thu 10 Apr 2008 - 07:24:18 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET