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

Re: Trim Two Characters On Line

by hippo (Chancellor)
on Oct 23, 2020 at 08:16 UTC ( #11123076=note: print w/replies, xml ) Need Help??

in reply to Trim Two Characters On Line

I have read many forums

Maybe just the documentation would have been enough. Since you can write pseudocode, we'll assume you are a programmer and are familiar with the usual constructs.

For if ... then ... else ... end if see Compound Statements.

For LINE contains "SUM" see index or perlre.

For remove last two characters in line you have lots of options, including substr, chop, the s/// operator, etc.

Note that there are many Tutorials right here in the Monastery to help you get started. Enjoy.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2021-01-25 16:32 GMT
Find Nodes?
    Voting Booth?