Tuesday, September 25, 2012

Perl [ Generate executables from Perl / Binary file]

File Hello.pl
---------------------------------------------
#!/usr/bin/perl
use strict;
use warnings;

print "Hei man !!! \n";
---------------------------------------------

[root@localhost Desktop]# perlcc -o Hello Hello.pl
[root@localhost Desktop]# chmod +x Hello
[root@localhost Desktop]# ./Hello
Hei man !!!
[root@localhost Desktop]# less Hello
"Hello" may be a binary file.  See it anyway?

0 comentários:

Post a Comment