A curiosity of sorts......<br>Does anyone know of documentation about how 'split' relates to 'localtime'? It appearently is related, somehow. An illustration using version 5.004_04 on Solaris.<br>This code:<br><br>#!/usr/local/bin/perl<br><br>@timeVars = localtime(time);<br>print "Straight from localtime\n";<br>print "@timeVars";<br>print "\n-----------------\n";<br><br><br>$when2 = localtime(time);<br>@vars = split(/ /,$when2);<br>print "Date vars after use of split\n";<br>print "@vars";<br>print "\nyear - $vars[4]\n";<br><br>#end of code chunk<br><br>produces this text:<br><br>Straight from localtime<br>50 38 9 27 3 100 4 117 1<br>-----------------<br>Date vars after use of split<br>Thu Apr 27 09:38:50 2000<br>year - 2000<br><br><br>The use of 'split' magically converts the array '@vars' to date chunks.<br><br>Question: How does 'split' know it is operating on the result of a localtime call?<br>