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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
what's that mean? (Score:1)
Re:what's that mean? (Score:2)
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.
Re:what's that mean? (Score:2)
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 anxorwith 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.Reply to This
Parent