Thats works... i have a tab in the beginning of a line.. can you tell me how to represent a "tab" in a search string... i used ($line =~ m/^\/) && ($line =~ m/^\ /) .. respectively for a '' character and ' ' space.. need to work to get a "tab" too...
Im unable to understand what kind of character is that.. the one which looks like a box.. i thought it was a tab.. but im not sure...
can anyone help me??...
thanks
Don't know what you exactly want, but sometimes is more easy to search for what you want than to exclude the things you don't want, remember there are many way's how you can solve the issues with perl.
im sorry about the last post.. it was some weird character i couldnt copy it properly... i have a question...
foreach my $file (@array) {
open(FILE,"<","$file");
while (my $line = <FILE>)
{
if ($line =~ /^*/){
print $line;
}
}
close(FILE);
}
im looking to print all the ripped contents from each file to other different files.. example... if im going through file1, file2, file3...filen .. im looking to write to file1_1, file2_1, file3_1, ... filen_1 .. something like that instead of print $line;