User Tools

Site Tools


ower_own_perl_wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ower_own_perl_wiki [2008/09/29 02:54] cs243081ower_own_perl_wiki [2008/09/29 03:02] (current) cs243081
Line 53: Line 53:
 | LOCK_UN      | unlocks the previously locked file    |  | LOCK_UN      | unlocks the previously locked file    | 
 | LOCK_NB      | should be bitwise 'or'-ed with either LOCK_SH or LOCK_EX and will result in a non-blocking lock    |  | LOCK_NB      | should be bitwise 'or'-ed with either LOCK_SH or LOCK_EX and will result in a non-blocking lock    | 
 +\\ 
 ---- ----
  
Line 62: Line 62:
 Here's a couple of things you ought to know to fully understand the code: Here's a couple of things you ought to know to fully understand the code:
  
-To define a hash, a percent (%) symbol is used before the name (i.e %myhash).  A hash is like an arrays except that they link a key to a value and the key is unique. +  * A hash is like an arrays except that they link a key to a value and the key is unique. 
-* $_ is a special perl variable known as the default or implicit variable.  In our example below it'd be the implicit value of the current @array1 item. +  * $_ is a special perl variable known as the default or implicit variable.  In our example below it'd be the implicit value of the current @array1 item. 
  
 <code perl> <code perl>
ower_own_perl_wiki.1222656858.txt.gz · Last modified: 2008/09/29 02:54 by cs243081

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki