in reply to Re^2: Writing the elements of an array to a file
in thread Writing the elements of an array to a file
print "\x45" | "\x59"; # Prints \x5d. print 'E' | 'Y'; # Same as the above, prints ]. print 69 | 89; # Prints 93 (5d in hex).
| is clever, it knows whether it operates on bytes (strings) or numbers.
Update: fixed typo (s/78/89/), thanks poj.
|
|---|