On Jan 12, 8:27 pm, sunita.prad...@altair.com ("Sunita Rani Pradhan") wrote: > Hi All > > I have a string as; $str = "the cat sat on the mat" . > > How the following command works substr($str , 4, -4) on the string ? > What should be the output? >
See: perldoc -f substr Check the docs first for explanations and examples of any Perl builtin function. -- Charles DeRykus -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/