in reply to subroutine referencing

The parser expects a bareword or a simple scalar for the method name. The idiomatic approach is to use a scalar dereference operation when dealing with more syntactically complex scalars e.g
print $image->${ \$ext{JPEG} };
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: subroutine referencing
by imcsk8 (Pilgrim) on Mar 09, 2004 at 18:15 UTC
    i was thinking something like that but i still had my doubts. thanks!!

    ignorance, the plague is everywhere
    --guttermouth