Hello, I am a total beginner, so any help or a pointer to an appropriate doc will be appreciated.
I am trying to read a file, and find all the lines that look like; "Finding 111" where "111" could be any number with any amount of digits. What I am trying to do now is to assign a variable to that number for later use. or even better; gather all the numbers (from those specific lines only) and put them into an array. use File::Slurp; my @log = read_file($logfile); my $lines; foreach $lines (@log) {($lines =~ /Finding (.*)/)}; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]