i am reading the content of the directory & then putting if condition to comapre the file name.
problem is: filename ends with number.
eg :prstat-Lvs-20080118-2100
the first part of the file name is constant but the later part (20080118-2100) is not constant
Expand|Select|Wrap|Line Numbers
- my $dir = "C:\\Performance_svap\\INPUT_FILES\\*";
- my @file=glob("$dir");
- my $f;
- my @prstat_Lvs;
- foreach $f (@file){
- if ($f =~ /prstat-Lvs/){
- push (@prstat_Lvs,$f);
- }
do i need to give like this :
Expand|Select|Wrap|Line Numbers
- if($f =~/prstat-Lvs-[0..9]-[0..9]/){
Regards,
Vijayarl