[Israel.pm] integrating unix commands

Mikhael Goikhman migo at homemail.com
Wed Jan 14 07:01:58 PST 2004


On 14 Jan 2004 15:50:14 +0200, Yuval Kogman wrote:
> 
> On Wed, Jan 14, 2004 at 10:48:30AM +0200, Offer Kaye wrote:
> 
> > $|=1; for(`command`){do_stuff} ?
> 
> No.. That won't work. It will simply do the command again and again.

Although I agree with your other points, this sentence is incorrect.
Try:  for (`date +%D%n%T`) { print }

You probably meant that with "while (`command`)" the command is executed
again and again, but this is a different story.

Regards,
Mikhael.

-- 
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'



More information about the Perl mailing list