Perl_User has asked for the wisdom of the Perl Monks concerning the following question:
I am having a hard time getting the information from within the second set of braces [args: ..]. The items in the "" are not always a fix number of set (meaning that there can be only two things in with quotes or many more things with the quotes.) I want to get the information that is after the args: into a variable without the quotes and commas. Can anyone help?Aug 1 12:12:12 host [login=name, pid=1356] -> sh [args: "sh", "-c", "l +s -l", "/var/log"]
Fixed square bracket - dvergin 2003-08-01
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Splitting on an undefined # of variables
by sgifford (Prior) on Aug 01, 2003 at 21:51 UTC | |
Re: Splitting on an undefined # of variables (golf)
by BrowserUk (Patriarch) on Aug 01, 2003 at 22:15 UTC | |
Re: Splitting on an undefined # of variables
by dga (Hermit) on Aug 01, 2003 at 21:50 UTC |