N
NEAL ZIERKE
I'm just learning perl, so that said.
question is.
If I have file names in directory like /mydir/abcd12e.fgh ,,, in unix system
I wish to test the "12" part of filenames. I understand and lot of examples
on net for directory stuff ( File::Find::name )
I wish to test against other file names that will look the same but the 12
would be different ( this is the version of the file ) , say it might look
like this /mydir/abcd45e.fgh, where as this is newest version.
What is the easiest way to test those 2 char's of file name in perl
So like
use File::Find;
find(\&myprocessing,"startdir");
sub myprocessing
{
if ( "test the "12" vs the "45" )
{
"move the new to old file code "
}
}
question is.
If I have file names in directory like /mydir/abcd12e.fgh ,,, in unix system
I wish to test the "12" part of filenames. I understand and lot of examples
on net for directory stuff ( File::Find::name )
I wish to test against other file names that will look the same but the 12
would be different ( this is the version of the file ) , say it might look
like this /mydir/abcd45e.fgh, where as this is newest version.
What is the easiest way to test those 2 char's of file name in perl
So like
use File::Find;
find(\&myprocessing,"startdir");
sub myprocessing
{
if ( "test the "12" vs the "45" )
{
"move the new to old file code "
}
}