N
Neil
ok,
code first me thinks
my @Inc_Types = (".avi", ".mp3"); # Included File Types
my $ifstring;
my $count = 0;
foreach my $temp(@Inc_Types) {
if ($temp eq 0) {
$ifstring = "(\$File::Find::name =~ /$temp\$/i)";
}
else {
$ifstring .= " || (\$File::Find::name =~ /$temp\$/i)";
}
if ($ifstring) {
#Does its thing if would treat $ifstring as a string and not just tell
me that it is defined
}
think thats the best way i can explane it. im looking for:
"if ($ifstring) {" to be treated as "if ($File::Find::name =~ /.avi$/i)
|| ($File::Find::name =~ /.mp3$/i) {"
and not a check to see if its defined
fix for my way or does it need to be done different?
any help/points in the right direction greatly appriciated
code first me thinks
my @Inc_Types = (".avi", ".mp3"); # Included File Types
my $ifstring;
my $count = 0;
foreach my $temp(@Inc_Types) {
if ($temp eq 0) {
$ifstring = "(\$File::Find::name =~ /$temp\$/i)";
}
else {
$ifstring .= " || (\$File::Find::name =~ /$temp\$/i)";
}
if ($ifstring) {
#Does its thing if would treat $ifstring as a string and not just tell
me that it is defined
}
think thats the best way i can explane it. im looking for:
"if ($ifstring) {" to be treated as "if ($File::Find::name =~ /.avi$/i)
|| ($File::Find::name =~ /.mp3$/i) {"
and not a check to see if its defined
fix for my way or does it need to be done different?
any help/points in the right direction greatly appriciated