Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Use String as GetOptions Param

I have below string which I want to use in GetOptions to avoid hardcoding (because these parameters are not static).

my $param = " 'name=s','status=s' ";

I have to store values in a hash.

GetOptions(\%data,$param);

Error is :

Error in option spec

Comments