#!/usr/bin/perl use strict; use warnings; chomp( my @input = <> );
Update: Oh, it seems you aren't reading from a file handle as you showed.
chomp( my @input = split(/^/m, $input) );
In reply to Re: Transforming a scalar to an array
by ikegami
in thread Transforming a scalar to an array
by vxp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |