http://qs321.pair.com?node_id=99005


in reply to Re: Re: Extracting System Info
in thread Extracting System Info

The stuff that he put after the __END__ line gets read into the filehandle called DATA. So, what you want to do is open up /proc/pci yourself (since you won't have the data embedded in your script.)

Try putting this line before the while loop:
open(DATA, '/proc/pci') or die "Can't open /proc/pci: $!";