http://www.perlmonks.org?node_id=896874


in reply to Get unique value from computer

To prevent hard-coding problems (as mentioned by marto), consider checking for the existence of some unusually named file in a standard directory.

If the file exists, your program can run; if it doesn't, it won't.

This gives you the additional flexibility to add machines without having to modify your software.

Replies are listed 'Best First'.
Re^2: Get unique value from computer
by Ratazong (Monsignor) on Apr 01, 2011 at 12:03 UTC
    Files can be copied from one machine to another ... which reduces their usefulness regarding getting unique values ...