DO NOT REPLY [Bug 11976] New: - Missing functionality in Perl5Util.substitute( )

[email protected]
Newsgroups gmane.comp.jakarta.oro.devel
Message-ID <[email protected]>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976

Missing functionality in Perl5Util.substitute( )

           Summary: Missing functionality in Perl5Util.substitute( )
           Product: ORO
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I want to substitute \n in a file with \n.  (That is, the text \n with a 
carriage return).  In regular Perl, the following works: s/\\n/\n
However, util.substitute("s/\\n/\n",<String>); did not work (it printed 
out "\n" instead of doing a carriage return).  The regular substitution worked 
fine (e.g. util.substitute("s/@/\n",<String>) resulted in "@" being replaced by 
carriage returns.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.