Do you know of some procedure or something like a pragma to build interactive CLI programms?

By "pragma" I wonder if you don't just mean a module...

See Term::ReadLine maybe.

"My two cents aren't worth a dime.";

In reply to Re: Interactive program by sauoq
in thread Interactive program by oldwarrior32

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":