Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by avik (3911) on 2004.11.24 10:31 (#36288) Journal
    Useless use of a constant in void context at -e line 1.
    • That means you probably pasted it under Windows. You need to change the outer ' to ". And then the inner " to something else using qq. That's what Nicholas meant by you may need to adjust the shell quoting...

      But even with this modification, \n is something else than under Unix, so the xor produces something else. The script prints the rather inocuous string 8uib here.

      • I don't think that your analysis of the cause is correct. The only letter that is correct in your output is the u, which is the only one not generated by an xor with any \ escape sequence. I suspect that actually the Windows shell is doing something with the escape sequences, and if you pasted the script to a file and ran that, it would work. Newline to (carriage return, newline) translation is done at I/O time, not inside the interpreter's data.