Regex to breakdown c code
From: Jerry Preston (g-preston1_at_ti.com)
Date: 03/29/05
- Next message: Offer Kaye: "Re: More Regex for Newbies"
- Previous message: Rajarshi Das: "EastAsianWidth test."
- Next in thread: John W. Krahn: "Re: Regex to breakdown c code"
- Reply: John W. Krahn: "Re: Regex to breakdown c code"
- Reply: Offer Kaye: "Re: Regex to breakdown c code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'Perl Beginners'" <beginners@perl.org> Date: Tue, 29 Mar 2005 00:06:55 -0600
I am want to break down the following code that can have any number of vars
being passed:
c_routine("name_1", 2, 3, 5, 0,9, 1, A, b, -1.5, 1.2, 100000, 0.03, 0, 0,
1, 0, m, l, var_name_1, var_name_2, var_name_3, var_name_4, var_name_5,
var_name_6);
I only want the passed vars.
my ( $nuts, $line ) = split /\(/;
my @passed_vars = split /,/;
Also is it possible to get only the vars following ", m, l, " through ");"?
Thanks,
Jerry
- Next message: Offer Kaye: "Re: More Regex for Newbies"
- Previous message: Rajarshi Das: "EastAsianWidth test."
- Next in thread: John W. Krahn: "Re: Regex to breakdown c code"
- Reply: John W. Krahn: "Re: Regex to breakdown c code"
- Reply: Offer Kaye: "Re: Regex to breakdown c code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]