I have a very big-size string $s="dfasdfasdfafd...."
, of nearly 1,000,000 characters. I want to convert it to a file handle, making it look like this string is read from a file. But I don't want to store it to a temp file and read it.
Can anyone give me some suggestions?
Open a reference to a string:
Output: