View Single Post
Old 11-18-2011, 03:39 AM   PM User | #21
joeDetroit
New Coder

 
Join Date: Nov 2011
Location: Detroit
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
joeDetroit is an unknown quantity at this point
Quote:
Originally Posted by FishMonger View Post
Once you load the "license" file into the hash, you would add a new key (which is the hostname of the laptop) and its value is taken/extracted from one of the values of the anonymous array of the "unassigned" key.

For example:
Code:
$licenses{ $ENV{'COMPUTERNAME'} } = shift @{ $licenses{ 'UNASSIGNED' } };
After that, you rewrite the "license" file with the data in the %licenses hash.
Wow... talk about jumping into the deep end...

I'll give that a shot at work when I'm more awake.

---EDIT: I reserve the right to ask more dumb (perhaps obvious to seasoned coders) questions :-D

Thank you for your help!
Joe
joeDetroit is offline   Reply With Quote