Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Can't use string ("STRING") as a HASH ref - Help!by The Mad Hatter (Priest) |
on Mar 12, 2004 at 23:14 UTC ( [id://336299]=note: print w/replies, xml ) | Need Help?? |
Is the argument you're passing to foo a hash ref? That is, is it what CSS::Style::selectors() expects? CSS::Style::selectors In any case, read the doc and verify that $_[0] (what shift gets the value from) really contains what you want. Update2: Since you said you're new to Perl, here's probably what you want... I've tried to comment it well enough... read the doc and then ask if you need clarification... (Not tested, BTW, all from what the doc says.)
In Section
Seekers of Perl Wisdom
|
|