Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: more tricks learned from fellow monks

by davidrw (Prior)
on Feb 01, 2006 at 00:22 UTC ( [id://526935]=note: print w/replies, xml ) Need Help??


in reply to more tricks learned from fellow monks

I was immediately scared by the ">/etc/services" in there, but now i see what the first line (first real/full line :) ) is .. interesting.
I see (i think) what the rest is supposed to do and how, but couldn't get the $_=(<0>)[-1]; line to work -- always gets a blank string ... Where can i find docs on what <0> does (searched a little and couldn't find the right place)?

Replies are listed 'Best First'.
Re^2: more tricks learned from fellow monks
by chargrill (Parson) on Feb 01, 2006 at 00:35 UTC

    Yes, I was afraid people would be scared .. in fact, I'm pretty sure that's why the only vote I have at this point is a downvote. :(

    As far as the problem you seem to be encountering, my guess is that when you put this in a file...



    --chargrill
    [ whoops - signature hidden for this post, too :) ]
      well, FWIW i upvoted your OP and reply ;)

      But yeah, now it works when i delete the empty line at the end... which i swear i tried first, cause i figured it was trying to use the last line as source.. I think i learned more having to stare at it even closer and try and figure out my problem though ..
      thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://526935]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-19 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found