On Feb 25, 2005, at 10:24 AM, Daniel Macks wrote:
open APTDUMP, "$basepath/bin/apt-cache dump |"

Perl usually discourages this form, since if someone could convince $basepath to bstart with ">" it might do bad things.

Why not stick with this?

open APTDUMP, "-|", "$basepath/bin/apt-cache dump";

Still not super (since ugly basepaths with spaces can still fail), but a bit better and it works with both perls.

Dave

Attachment: PGP.sig
Description: This is a digitally signed message part



Reply via email to