Is there any way I can use a function to create a variable and assign
a value to it? I have a Perl script that returns some LDAP
information:
sn=Shore
givenname=Mike
logintime=20041 008153445Z
logindisabled=F ALSE
Instead of parsing this text and assigning the values, I was wondering
if a function exists where I can pass a variable name and a value, and
the variable would be created.
ie. somefunc("sn", "Shore")
Would create the variable $sn and assign the value "Shore" to it.
a value to it? I have a Perl script that returns some LDAP
information:
sn=Shore
givenname=Mike
logintime=20041 008153445Z
logindisabled=F ALSE
Instead of parsing this text and assigning the values, I was wondering
if a function exists where I can pass a variable name and a value, and
the variable would be created.
ie. somefunc("sn", "Shore")
Would create the variable $sn and assign the value "Shore" to it.
Comment