Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

hok_si_la

by hok_si_la (Curate)
on Jan 28, 2005 at 20:39 UTC ( [id://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. Took a space job with an FFRDC in Colorado Springs, finished ME in Space Ops, and now I climb mountains and don't get to work with Perl too much.

  • Work: I am the Executive Marketing Director of Parfums de Coeur, where I was the creative mind behind the aggressive Rap Musk ad campaigns targeting suburban youths who wanted to be urban youths (once available at fine retailers).

  • 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 and a freshly restore 1976 Honda CB750.
    • Hiking and mountaineering (14ers and through hikes)
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
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-10-07 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (44 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.