in reply to Problem with the Perl/Java intergarion when new line break is used in the argument
Process p = Runtime.getRuntime().exec( "c:/perl.exe" C:/CreateER.pl "Please \\n ignore \\n my friend");
Memory and cursory googling point toward backslash being an escape character in Java, as well as Perl... Thus, your perl program is getting those as literal line breaks.
Essentially, it's being called as:
c:/perl.exe C:/CreateER.pl "Please ignore my friend"
Update: I tested my theory in Eclipse. A: I was correct. B: You totally owe me a coke for making me have to deal with eclipse ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with the Perl/Java intergarion when new line break is used in the argument
by henrycui (Initiate) on Dec 12, 2008 at 18:53 UTC | |
by pobocks (Chaplain) on Dec 12, 2008 at 19:56 UTC |