in reply to from $string to shining $string
Now, a few things to note:my $string; { local $/ = undef; $string = <FILE>; } my @stuff = split '%', $string;
my $string; { local $/ = undef; $string = <FILE>; } $string =~ s/$///g; my @stuff = split /%+/, $string;
Update: Changed $/=''; to $/ = undef;. The first is "paragraph mode". The second is "slurp mode". Thanx to tye who pointed that out! :-)
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|