[EMAIL PROTECTED] wrote: > > Hello, Hello,
> I'm on a unix system and I want to query a ph nameserver to get some > information. I know that I can have unix do it for me with backticks > > $name = `ph email = [EMAIL PROTECTED] return name`; > > this will return text to $name > > ---------------------------------------- > name: Cinco, Aaron Lou Torres > ---------------------------------------- > name: Cuvelier, Carrie Jean > ---------------------------------------- > name: Dant, Gregory Charles > ---------------------------------------- > name: Erdos, Jason A. > ---------------------------------------- There are four people with the same email address? > this is exactly the data I want, a simple regex will get me the names I > need. > > So I basically have two questions... > > Can I query the nameserver from the script directly instead of unix > doing the work with backticks? > > Are backticks bad, and if so what are the alternatives if I need to > return information to a variable? You could use the Expect module or IPC::Open2 or IPC::Open3 modules to communicate both ways. perldoc Expect perldoc IPC::Open2 perldoc IPC::Open3 You could do yourself what Expect and IPC::Open* do for you perldoc -f fork perldoc -f exec perldoc -f pipe perldoc perlipc John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]