The difference is when the showMeTheDoc function is invoked, and what is assigned to window.onload.
In your first snippet, you're assigning a reference to a function. When the onload event fires, that function reference is executed, which then executes showMeTheDoc.
In your second snippet, the showMeTheDoc function is being executed immediately rather than waiting for the onload event, and the return value of that invocation is what is then assigned to window.onload.
for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
{for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";
Bookmarks