wandersman has asked for the wisdom of the Perl Monks concerning the following question:
I want "body" to go in $1, "a" in $2 etc if I do thisBODY, A, DIV, H1, H2, H3, H4, TABLE, TR, TH, TD, INPUT, TEXTAREA
it works but I it is bad looking code and breaks easily when giving different nubmers of arguments. if I do:/(\w+)\,\s?(\w+)\,\s?(\w+)\,\s?(\w+)\,\s?/
/(\w+)\,\s?/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how do I detect an arbitrary number of $1, $2...
by davorg (Chancellor) on Jul 30, 2001 at 19:33 UTC |