Skip to main content

Thread: Perl : question hex to decimal


this works command line
code:
perl -e 'print join(",",map { join(".", unpack("c4", pack("l", hex))) } split /,/, shift),"\n"' 4d92124d,fcffffff,4e92124d,4e92124d,470d5c1,c60f4382
gives
code:
77.18.146.77,255.255.255.252,77.18.146.78,77.18.146.78,193.213.112.4,130.67.15.198
need on putting in perl script

in advance

alexfish

what have pretty condensed perl script

rid of "perl -e", add
code:
#!/usr/bin/perl
to top of script, , save .pl file.

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

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?