Harry Putnam wrote:
I thought I understood you but when I run a modified script (at the
end) I see empty elements where I don't expect them.
The actual thing I'm working up to was splitting this input var
`ev 100421 4'
In reality I want to ditch `ev ' work with 100421 <for that part>
and finally use ` 4' for a quite different purpose. So in the end
I'll use all but 'ev '.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
# Make Data::Dumper pretty
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
# Set maximum depth for Data::Dumper, zero means unlimited
$Data::Dumper::Maxdepth = 0;
my $var = 'ev 100421 4';
my @numbers = $var =~ /(\d+)/g;
print Dumper \...@numbers;
__END__
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
I like Perl; it's the only language where you can bless your
thingy.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/