Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Seeking advice about learning another's code

by tachyon (Chancellor)
on Aug 02, 2001 at 02:57 UTC ( [id://101524]=note: print w/replies, xml ) Need Help??


in reply to Seeking advice about learning another's code

Here is an explanation of tr. It returns the number of translations it made. Normally you use it to translate one char into another like tr/A-Z/a-z/ which just lowercases $_ If the second part is null....well run the code and see.

$_ ="|Here|are|six|pipe|symbols|"; $pipecount = tr/|//; print $pipecount ,"\n", $_, "\n"; $pipecount = tr/|/~/; print $pipecount ,"\n", $_, "\n";

Good luck.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found