Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: How to remove underscore at the end of the line?by madtoperl (Hermit) |
on Mar 17, 2017 at 13:06 UTC ( [id://1185030]=note: print w/replies, xml ) | Need Help?? |
Hi finddata As suggested by davido Please check below it works,
OUTPUT: DCMS_DEMO_new_block2_checklist_tmp_rev1 DCMS_DEMO_new_block2_checklist_tmp_rev1 Also for your current input, a chop will also work (which is not recommended if your input line does not have _ always at end.It will remove the last character blindly) As other monks suggested, please try first and post the code which is not working instead of expecting the full code by other monks here.
In Section
Seekers of Perl Wisdom
|
|