Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Most efficient way to remove some text from a string

by adamZ88 (Beadle)
on Dec 07, 2016 at 20:21 UTC ( [id://1177420]=note: print w/replies, xml ) Need Help??


in reply to Re: Most efficient way to remove some text from a string
in thread Most efficient way to remove some text from a string

Bill, thank you for your explanation, it greatly helps. I follow what you are saying, can you please expand on how "tr" counts the remaining slashes and how the printf is being used. This would help me actually learn this content and not just simply use it because I am told. Thanks

  • Comment on Re^2: Most efficient way to remove some text from a string

Replies are listed 'Best First'.
Re^3: Most efficient way to remove some text from a string
by AnomalousMonk (Archbishop) on Dec 08, 2016 at 00:42 UTC

    I'm not sure just who you're replying to, but in general ...

    ... how "tr" counts the remaining slashes ...

    Please see discussion of  tr/// operator in Quote-Like Operators section of perlop. In particular, please see examples 2-4 in Examples sub-section.

    ... how the printf is being used.

    Please see printf; see sprintf for discussion of format specifiers.


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found