in reply to Help to create a program
I want help.
I want a Ferarri. Perhaps we could come to some mutually beneficial arrangement?
perl -lpi -e '$f = q/tymchasovyi/; s/^([^(]*)/string $f/; $_ .= qq/\n$ +1($f);/' yourfile
It passes all of the supplied test cases. If the spec is incomplete then this approach must be considered brittle.
See perlintro, perlrun, perlop and Getting Started with Perl for lots more info.
🦛
|
|---|