selecting few lines in perl
hi all....
In a file following are the contents........ ( etc, ls, /sbin/usr ..... ... ... ) command dksal ....... I know how to match a pattern in a single line and get it in $1 but here i want to select the lines between two braces ( and ) how can i accomplish this in perl can anyone please help me....... Thanks in advance...... |
owzthat?
Code:
#!/usr/bin/perl |
Quote:
when the line match "(" , set a flag if flag is set, print line |
Code:
while (<>) { |
Quote:
|
All times are GMT -5. The time now is 01:59 AM. |