Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Trim Two Characters On Line

by hippo (Bishop)
on Oct 23, 2020 at 08:16 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-25 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found