home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Perl CookbookPerl CookbookSearch this book

8.23. Pretending a String Is a File

8.23.2. Solution

Use the scalar I/O in Perl v5.8:

open($fh, "+<", \$string);   # read and write contents of $string


Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.