Two quick questions for the gurus:

1.  How are nested parenthesis in a match m// backreferenced?  I have a
folder full of files:

file_3.0
file_3.0.1
file_3.0.1a
file_3.0.1b
file_3.0.10
file_3.1
file_3.1.1
file_3.2a

And I want the last one without any letters in the number (not an
alpha/beta).  I have something like this:

$files = join " ", <file*>;
while ( m|(file_\d+(\.\d+)\b)|g ) { $thefile = $1; }

... which seems to work (correctly returns file_3.1.1), but I'm not sure how
the nested parenthesis are supposed to be referenced.  How would I get what
was matched by the inner set?  Is this the best way to do this?

2.  How do I set off a new process, not waiting or caring about any return
values?

$myApp = "/proj/mycoolexecutable";
$myOptions = "-f -n2 file1 file2";
# execute $myApp." ".$myOptions here, and do not wait for any return values


Thanks!

- Bryan



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to