in reply to what is the best way to seperate the digits and strings from variable ?
i mean, apart from that the task itself is rather questionable, i found it questionably funny thinking about it for some time. :Dopen SOURCE, "somefile" || die $!; my @source = <SOURCE>; close SOURCE; my $digits = ''; map { my $in = $_; $in =~ s/\D//g; $digits .= $in; } @source;
|
|---|