Not sure if this is the correct place to ask, partly because I'm not sure
where the problem lies.
Environ: Winnt, ActiveState Perl, ImageMagick, Apache.
Script uses CGI standard. I am attempting to access various methods from
Image::Magick, some of which require no arguments, 1 argument, several args,
and I want to access methods with arguments as follows:

$method = param("meth"); # works, grabs 'Rotate', 'Convolve' etc..
$method_args = param("margs"); # works also - to a degree
$result = $image-> $method ("$method_args");

When 'method' requires 1 argument (like Rotate - requires a numeric value in
degrees),
passing the method name and 'simple' argument (like $method is 'Rotate' and
$method_args is 90) the form:
$result = $image-> $method ("$method_args");
works without a hitch (and I must admit I am delighted...). When the method
can accept more than one argument (like Border which requires a 'geometry'
string like '2x2' and -should- accept a second argument for color in the
form color=>'red' the second argument is ignored.
Can anybody tell me what is happening, why the 'supplemental' arguments are
being ignored?
TIA and any feedback including RTFM itsat (one word meaning it {the FM} is
at ) is appreciated.
David




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to