Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Letter frequencies

by merlyn (Sage)
on Nov 24, 2000 at 18:16 UTC ( [id://43219]=note: print w/replies, xml ) Need Help??


in reply to Re: Letter frequencies
in thread Letter frequencies

tr/[ \t\n\r]//d;
Are you literally wanting to remove [ and ] there? Remember, the operands to the tr operator are not character classes, so they don't need brackets.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: {3} Letter frequencies
by jeroenes (Priest) on Nov 24, 2000 at 18:42 UTC
    Stomp on the head Yeah, of course. My excuses. I still have to get used to tr// . At first I wanted to tr/\s//d, but that was quite a disappointment! ;-).

    Thanks a lot!
    Jeroen

    I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://43219]
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: (2)
As of 2024-04-20 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found