in reply to Re: Store and match
in thread Store and match
Hi, if the values are as above, then how to print the values of Note. If the values of Note has "note_values", then how to count the number of occurence#!/usr/bin/perl while($x=<DATA>){ if ($x =~ /^\[Note\](.+)$/){ $var = $1; #store in a variable print $var; } } __DATA__ [Note] note_values,notes_values2 [Book] novels,magazines [Note] note_values,notes_values3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Store and match
by prasadbabu (Prior) on Aug 11, 2009 at 07:07 UTC |