I need to preserve the entire "$_\n" and need it in a scalar as that is what is used throughout the program. I have also tried :while (<$file>) { push (@data, "$_\n"); } print @data;
with no success. thanks$data = do { local $/; $_ };
In reply to slurping into scalars by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |