in reply to snmpwalk in perl
Welcome to the monastery.
I am a bit stuck here. You do not want to use a module but at the same time you have provided the solution to your self:`snmpwalk -v2c -$community $ip $oid`
What is wrong with this piece of code? Are you wondering how to store the stdout? Is it not working for you is it failing? Unless if you expect something else that you are not explaining.