On 2011-01-15 08:52, Emeka wrote:
rmicro@RMICRO-PC C:\Program Files\xampp # perl -le '$str = "the cat sat on the mat";print substr( $str, 4, -4 )' Can't find string terminator "'" anywhere before EOF at -e line 1.
On Windows it should probably look like:
# perl -wle "$s=q{abc def ghi jkl};print substr($s,4,-4)"
(untested)
--
Ruud
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
