in reply to Updating a binary value in Net::LDAP
If we call it an "octet string", instead of "binary", a concatenated octet string can be generated and stored like this (untested):
This will be a concatenated string of 32-bit binary IP addresses (assuming IPv4), and can be written to a file.use Socket qw( inet_aton ); ... fileStore => join ('', map {inet_aton $_} @mynets),
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
In Section
Seekers of Perl Wisdom