title: issue with creating perl script to imitate linux command "ifconfig"
body: <p>I have an assignment in which I am to create a Perl script in Linux to imitate the command <code>ifconfig</code>. This command basically shows you information about your network interfaces. I have already created the program, but a few lines are giving me some issues, I would appreciate if anyone could correct the code for me. The errors I am getting says that <code>$get_iface_data requires an explicit package name at line 8</code>, however I do not know how to declare that.</p>
  
  <pre><code>#!/usr/bin/perl
  use strict;
  use warnings;
  use Net::Int::Stats;
  use Net::Ifconfig::Wrapper;
  
  my $Iface   = $ARGV[0];
  my $rx_packets  = $get_Iface_data-&gt;value($Iface, 'rx_packets');
  my $Iface_Info = Net::Ifconfig::Wrapper::Ifconfig('list', '', '', '');
  print "\tether ". $Iface_Info-&gt;{$Iface}{'ether'}."\n";
  </code></pre>
  
  <p>My assignment basically requires me to get an interface as input, and display the info about that interface, as the <code>ifconfig</code> command would do. I also used two packages, <code>Net::Int::Stats</code> and <code>Net::Ifconfig::Wrapper</code>. The only difference between my script and the <code>ifconfig</code> command is my script will require an interface  as parameter</p>