in reply to Uniquely identifying each & every html template
My question is HOW am i suppose to identify each and every html webpage i have, without the need of editing and embedding a string containing a number for them.
The full pathname of each file is already a unique identifier, why do you need a number also?
Converting the unique name to a unique number can be done in any number of ways:
sub id{ my $n = 0; $n = ( $n << 1 ^ $_ ) for unpack 'Q(X7Q)*', $_[0]; +$n };; print id( $_ ), ' : ', $_ for qw[ /home/nikos/public_html/folder/subfolder/index2.html /home/nikos/public_html/folder/subfoldre/index2.html /homa/nikos/public_html/folder/subfolder/index2.html /home/nikos/public_html/folder/subfoldre/index.html /home/nikos/public_html/folder/subfolder/index.html ];; 14395874431259872676 : /home/nikos/public_html/folder/subfolder/inde +x2.html 18362554206005274164 : /home/nikos/public_html/folder/subfoldre/inde +x2.html 14252040718160727460 : /homa/nikos/public_html/folder/subfolder/inde +x2.html 534634562378736008 : /home/nikos/public_html/folder/subfoldre/index. +html 2010048469067125824 : /home/nikos/public_html/folder/subfolder/index +.html
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Uniquely identifying each & every html template
by Nik (Initiate) on Jan 21, 2013 at 15:24 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2013 at 16:15 UTC | |
by Nik (Initiate) on Jan 21, 2013 at 17:05 UTC | |
by tobyink (Canon) on Jan 21, 2013 at 17:19 UTC | |
by Nik (Initiate) on Jan 21, 2013 at 17:42 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2013 at 17:56 UTC | |
by Nik (Initiate) on Jan 21, 2013 at 18:14 UTC | |
|