newbie also
- From: "NEAL ZIERKE" <deniserz@xxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 14:18:06 GMT
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 "
}
}
.
- Prev by Date: FAQ 7.4 How do I skip some return values?
- Next by Date: Re: hang when I run perl -MCPAN -e 'install Net::SSH::Perl'
- Previous by thread: FAQ 7.4 How do I skip some return values?
- Next by thread: Re: matching file name without digits
- Index(es):