in reply to Re^3: Module to get domain name from hostname
in thread Module to get domain name from hostname

I'm experiencing another issue now. How can I get this script to read $hostname variable from host.txt? Tried several solutions, but none worked. I could use $ARGV[0]; but it doesn't suit my needs. I need it to read the hostname from an external file. Thank you!
  • Comment on Re^4: Module to get domain name from hostname

Replies are listed 'Best First'.
Re^5: Module to get domain name from hostname
by Corion (Patriarch) on Jan 29, 2015 at 18:05 UTC

    So, what did you try, and how did it fail?

    Maybe see open, readline (or <>, the "diamond operator"), or perlvar on @ARGV.