in reply to Do not display the command result in the console (updated)

@a = `ifconfig`;
this sinppet does ifconfig
stores ouput in the array
so nothing's on the screen

but your code
@a = `ifconfig 2>&1 1>/dev/null`;
does ifconfig
redirects stderr into stdout
redirects stdout into null
so perl gets nothing
but the command is executed
something like that