in reply to File is not creating to see the Result

The s/// operator is substitution: find the regex in the first part, and replace it with the string in the second part.

So those two statements find spaces at the front of the string, and susbstitute nothing for them, and find spaces at the end of the string, and substitute nothing for them.

  • Comment on Re: File is not creating to see the Result

Replies are listed 'Best First'.
Re^2: File is not creating to see the Result
by mtrasp (Acolyte) on Mar 10, 2010 at 06:52 UTC

    Thank you very much for your reply

      The second one probably has a typo. As it stands, it will only remove a space followed by one or more whitespace characters. If there's as single space at the end of the line, that substitution will leave it there.
        Thank you for your reply can you please elaborate

        Thank you for your reply Can you please explain more about those statements