in reply to Regeler expression->Re^4: Help for generating multiple file from singl e file and
in thread Help for generating multiple file from singl e file and parsing it.
if you are using 3023NMANS.20111011.2 as a hash key, then you want to delete it to remove it and its associated value from the hash.#!/usr/bin/perl -w use strict; my $str ='3023NMANS.20111011.2'; my ($front,$end) = $str =~ /^(\d+)NMANS([.\d]+)/; print "$front $end\n"; #3023 .20111011.2
|
|---|