Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

hok_si_la

by hok_si_la (Curate)
on Jan 28, 2005 at 20:39 UTC ( #426097=user: print w/ replies, xml ) Need Help??

About Me

  • Life: Born and Raised in San Antonio Texas. Received a BS in CS from Texas State University, formerly Southwest Texas State University. I was married in 2002, and my first child followed in 2003. Joined the Navy in the fall of 2005, served in Afghanistan, played volleyball, and completed my MS in Software Engineering. I am currently transitioning from San Antonio to Colorado Springs.

  • Work: I am a contracted software engineer for a research lab in the northeast.

  • Interests:
    • I was a very serious indoor and outdoor volleyball player (now coaching).
    • I love anything on two wheels. As far as biking goes, I am an avid Mountain Biker and often commute the 22 mile round trip to work daily. I also love motorcycles, and have a beautiful 1973 Honda cb500.
Links

Cheats

  • Variables: The following is from the wonderful Perl Pocket Reference 4th Edition.
    • $var -A simple scalar variable
    • $p=\$var -Now $p is a reference to scalar $var.
    • $$p -The scalar referenced by $p.
    • @var -An array. In scalar context the number of elements in the array.
    • $var[6] -Seventh element of array @var.
    • $var[-1] -The last element of array @var.
    • $p=\@var -Now $p is a reference to array @var.
    • $$p[6] or $p->[6] -Seventh element of array referenced by $p.
    • ${$p[6]} -The scalar referenced by $p[6].
    • $p=\$var[6] -Now $p is a reference to the seventh element of array @var.
    • $p=[1,3,'ape'] -Now $p is a reference to an anonymous array with three elements.
    • $var[$i][$j] -$j-th element of $i-th element of array @var.
    • $#var -Last index of array @var.
    • @var[3,4,5] -A slice of array @var.
    • %var -A hash. In scalar context, true if the hash has elements.
    • $var{'red'} or $var{red} -A value from hash %var. They hash key may be specified without quotes if it is a simple identifier.
    • $p=\%var -Now $p is a reference to a hash.
    • $$p{'red'} or $p->{'red'} -A value from the hash referenced by $p.
    • ${$p{'red'}} -The scalar referenced by $p{'red'}.
    • $p={red=>1, blue=>2} -Now $p is a reference to an anonymous hash with two elements.
    • @var{'a','b'} -A slice of %var; same as ($var{'a}', $var{'b'}).
    • $var{'a',1...} -Multidimensional hash (obsolete).
    • $c=\&mysub -Now $c is a reference to the subroutine mysub.
    • &$c( args ) or $c->( args ) -A call to the subroutine via a reference.
    • $c = sub {...} -Now $c is a reference to an anonymous subroutine.
    • pkg::var -a variable from a package, e.g., <$pkg::var, @pkg::ary. the default package is main.
    • *name -Symbol table entry (typeglob). refers to everything represented by name. $n1{SCALAR} is the same as \$n1; *n1{ARRAY} is the same as \@n1. Other possibilities are HASH, CODE, GLOB and IO.

  • PM Linking:
    • home node: [monkname]
    • node by ID: [id://nodeid]
    • user's scratchpad: [pad://username]
    • perldoc entry: [doc://document name]
    • perlfunc entry: [doc://function name]
    • module search on CPAN: [cpan://XML::Parser]
    • module search on Kobes: [kobes://XML::Parser]
    • module docs on CPAN: [mod://XML::Parser]
    • module distribution on CPAN: [dist://Class::DBI 0.95]
    • search google: [google://search terms]
    • usearch a jargon file: [jargon://search terms]
    • search a dictionary: [dict://word]
    • search WikiPedia: [wp://Page Title]

Perl Geek Code:

My Unitarian Jihad Name is: Brother Pitchfork of Compassionate Togetherness. What's yours?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-07-29 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls