denzil_cactus has asked for the wisdom of the Perl Monks concerning the following question:
and I want to extract only the variable names i.e.(book_num,cube_no) in a another variable and I am using regex for this..but its not working ..can u please help me out..My regex is$var = ".declare book_num a13"; $var = ".declare cube_no 9999999.999";
but its not working...$var =~ s/^(\.\w+\s+)(\w+)(\s+.)/$2/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extract the variable
by ForgotPasswordAgain (Vicar) on Jun 25, 2007 at 12:00 UTC | |
by denzil_cactus (Sexton) on Jun 25, 2007 at 12:25 UTC | |
by johngg (Canon) on Jun 25, 2007 at 14:27 UTC | |
| |
by blazar (Canon) on Jun 26, 2007 at 08:53 UTC | |
by denzil_cactus (Sexton) on Jun 25, 2007 at 12:07 UTC | |
by Fletch (Bishop) on Jun 25, 2007 at 12:12 UTC | |
|
Re: Extract the variable
by jagh (Monk) on Jun 25, 2007 at 12:01 UTC | |
| |
|
Re: Extract the variable
by naikonta (Curate) on Jun 26, 2007 at 14:37 UTC |