I want to read some stuff from the input line and build a string with it.
My code is:
Expand|Select|Wrap|Line Numbers
- print "insert title\n";
- $title=<STDIN>;
- $output="_"."$title"."_1000";
- print "$output\n";
If I input "Rocky" I get:
_Rocky
_1000
I needed:
_Rocky_1000
I know this happens because of the STDIN since if I assign directly the var $title with "Rocky" it works fine.
Can someone help here building the string in one line?
TIA,
Joćo