Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

InfiniteLoop's scratchpad

by InfiniteLoop (Hermit)
on Sep 15, 2004 at 14:36 UTC ( [id://391188]=scratchpad: print w/replies, xml ) Need Help??

  1. another one for later reference: What A Wonderful World: Bitmasks!

  2. After a long search found what I was looking for: Book update: "Exploring Programming Language Architecture in Perl" and Exploring Programming Language.. posting them here, in case I forget.

  3. Recently I enabled the "Free Nodelet". Everytime I wanted to post a question, I couldn't recall the What shortcuts can I use for linking to other information? link and took a lot of digging to get to the page. However, now I have a direct link to the shortcuts page, right under the text area, via this code:
    <script language="javascript"> var lb = "\x5B"; var rb = "\x5D" function getMyTable(){ //get the table var tables = document.getElementsByTagName("table"); var mytable; var evalstr = "tables" + lb + "i" + rb + ".className"; for(var i=0;i<tables.length;i++){ var class = eval(evalstr); if(class == "addnewform"){ mytable = eval("tables" + lb + "i" + rb); return mytable } } return mytable; } function add_shortcut(){ var elements = getMyTable(); if(elements){ var row = elements.insertRow(elements.rows.length); var cell = row.insertCell(0); cell.innerHTML = '[id://43037]'; } } // Execute our snippets after the page is parsed. var old_onload = window.onload; window.onload = function() { if (old_onload != null) old_onload(); add_shortcut(); }; </script> [id://43037]</br><hr> <a href="http://perlmonks.org/?node=Free%20Nodelet%20Settings">Free No +delet Settings</a>
    The code to insert the link, in the html DOM is mine, however I forgot from where I copied the rest of the ideas, especially "lb"/"rb" and the "onload" trick. Credit goes to whoever first created it. Thanks

  4. Found this line in some old files:
    #!/usr/local/bin/perl eval 'exec /opt/perl/5.6.1/bin/perl -S $0 ${1+"$@"}' if 0; # not running under some shell
    was perplexed, till ambrus and corion helped me (over monk chat, no less). The long and short of it is, some shell's might not know what to do with #! , hence the eval. You can read all about it here:

  5. A pop-up menu with list of online IM users for gaim. This menu can be activated by a key board shortcut, which can be coupled to gaim-remote. (http://gaim.sourceforge.net/api/perl-howto.html)
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found