Thread: Perl : question hex to decimal
this works command line
givescode:perl -e 'print join(",",map { join(".", unpack("c4", pack("l", hex))) } split /,/, shift),"\n"' 4d92124d,fcffffff,4e92124d,4e92124d,470d5c1,c60f4382need on putting in perl scriptcode:77.18.146.77,255.255.255.252,77.18.146.78,77.18.146.78,193.213.112.4,130.67.15.198
in advance
alexfish
what have pretty condensed perl script
rid of "perl -e", add
to top of script, , save .pl file.code:#!/usr/bin/perl
looking take in user input or command line args script?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Perl : question hex to decimal
Ubuntu
Comments
Post a Comment