LIBNETCFG(1perl)

πŸ“¦
version 5.44.0 Β· 2 versions
, in arch rolling

✨ LIBNETCFG ✨

okay bestie, welcome to libnetcfg β€” the lil utility that lives in the Perl Programmers Reference Guide, and yes it's the glow-up era of the classic libnetcfg page πŸ’…


πŸŽ€ NAME πŸŽ€

libnetcfg β€” configure libnet, fr fr


🌸 DESCRIPTION 🌸

So like, the libnetcfg utility is literally the tool you use to configure libnet. Starting from perl 5.8, libnet is part of the standard Perl distribution β€” iconic β€” but libnetcfg can be used for any libnet installation. Any. Of them. No cap. πŸ¦‹


πŸ’– USAGE πŸ’–

no arguments? it just spills the tea β˜•

Without arguments, libnetcfg displays the current configuration:

$ libnetcfg
# old config ./libnet.cfg
daytime_hosts        ntp1.none.such
ftp_int_passive      0
ftp_testhost         ftp.funet.fi
inet_domain          none.such
nntp_hosts           nntp.none.such
ph_hosts
pop3_hosts           pop.none.such
smtp_hosts           smtp.none.such
snpp_hosts
test_exist           1
test_hosts           1
time_hosts           ntp.none.such
# libnetcfg -h for help
$

It tells you where the old configuration file was found β€” if it was found. (if not… well, nothing to report, bestie 🫢)

The -h option will show a usage message. handy!

actually changing stuff πŸ”₯

To change the configuration you will need to use either the -c or the -d options. those two, pick one.

the old config file situation πŸ“

The default name of the old configuration file is by default libnet.cfg, unless otherwise specified using the -i option, -i oldfile, and it is searched first from the current directory, and then from your module path. like it checks your room first and then the rest of the house. πŸ’€

the new config file situation ✨

The default name of the new configuration file is libnet.cfg, and by default it is written to the current directory, unless otherwise specified using the -o option, -o newfile. so if you don't say otherwise it's dropping it right where you're standing. main character energy honestly πŸ‘‘

bestie heads up: nothing here gets written unless you bring -c, -d, -i, or -o to the party. no arguments = read only, look don't touch vibes. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Net::Config
  • libnetFAQ

go read those too, they're giving supplemental lore πŸ’œ


πŸ‘‘ AUTHORS πŸ‘‘

  • Graham Barr, the original Configure script of libnet. the blueprint fr.
  • Jarkko Hietaniemi, conversion into libnetcfg for inclusion into Perl 5.8. the glow-up arc πŸŽ€

and that's the whole page babes β€” this was perl v5.44.0, dated 2026-10-17, from the LIBNETCFG(1perl) page in the Perl Programmers Reference Guide. slay, go configure something πŸ’…βœ¨

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms