Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Treating a variable as a variable in a regular expression?by LanX (Saint) |
on Jul 08, 2014 at 13:37 UTC ( [id://1092721]=note: print w/replies, xml ) | Need Help?? |
> $function_used isnt being treated as a variable (as you know) Nope, I doubt this! Even without being able to test the code you posted. (did you?) memcpy should be deleted now. My best guess is that in your real code $function_used doesn't contain what you think it should. Maybe a problem with scoping? > So how can one solve this? !!!!!!!!!!!! I solved this by removing the global identifier. !!!!!!!!!!!! Your keyboard is broken, maybe that's the problem?(...??????????) :)
Cheers Rolf (addicted to the Perl Programming Language)
updatenow I can test, the code you posted explicitly informs you about the wrong semicolon:
and the corrected code doesn't have any of your imagined "problems"
so I think you should better take a look into How (Not) To Ask A Question :)
In Section
Seekers of Perl Wisdom
|
|