I know this is a real basic and stupid question but how do I run a perl script on OSX? I honestly can't find the answer anywhere! Presumably I have to run a command in Terminal but what?
Thanks in advance,
Jeff
Is there a simple way/module to map snmp(MIB) strings to OIDs in perl?
E.g. I start with "sysUpTime.0" and get "1.3.6.1.2.1.1.3.0". As far as I can see, Net::SNMP expects you to have them already mapped.
I have a file of 1000 lines, each line in the format
filename dd/mm/yyyy hh:mm:ss
I want to convert it to read
filename mmddhhmm.ss
been attempting to do this in perl and awk - no success - would appreciate any help
thanks
I basicly want to write a small packet sniffer in perl im using ubuntu 9 im basically looking to sniff all packets on my nic and return data such as source and destination address as well as the data i looked into Net::Write::Layer2 but i could never get it to run as it says it cannot find the required libs and i cannot find the dependents adn that lib is for writeing data and not accepting it ive read that i should use libpcap but no good examples are available i basicly just need to know what lib i should use and ill find a example/tutorial on using said lib
Thanks in Advance
I plan to add a better search feature to my site, so I thought that I would write it in C and use the CGI as a means to access it. But it seems that Perl is the most popular language when it comes to CGI-based stuff. Why is that? Wouldn't it be faster programmed in C or machine code?
What advantages, if any, are there to writing it in a scripting language?
Thanks.
can you convert this perl code to python code :
$list = $ARGV[0];
open (PASSFILE, "$list") || die "[-] Can't open the List of password file !";
@strings = ;
close PASSFILE;
Thanks
somewhere i read about one specific feature present in awk which is absent in perl.
failed in locating it again.
would appreciate it, if anyone of you could remember.
(yep, this might be a useless trivia.) but still curious.
Hi all,I have using Perl DBI .In that $dbase-tables() will return all the tables in the corresponding database .Like this I want to know the schema's available in the database .Is there any function available for that .
The title says it all. When executing a perl script from the command line how can I ensure that my output doesn't scroll off the screen, In others words how do I mimic the functionality of the unix "more" or "less" functionality.
Is it possible to read HTML Web 2.0 Source Code that is dynamically generated ?
The Perl LWP with its agent-response does not pick up any dynamically generated HTML code.
Many websites today are generating dynamic html. If I am shoppping for best prices, and the prices are dynamically fetched and dumped, then I am out of business.
Are we reaching the end of a era?
Dear all,
I just want to transfer ( send or receive ) a hash from client to server.
can you tell me which is a preferable way in perl or can you suggest any cpan modules.
Thanks in advance!
I have using Perl DBI. In that $dbase->tables() will return all the tables in the corresponding database. Like this I want to know the schema's available in the database. Is there any function available for that?
I have a PHP web page, from which I need to call a perl script which executes in a console.
Please consider the possibility of getting the return values back to PHP with this?
Although not mandatory to pass values back to PHP. I want to see the possibilities.
Any help please?
Thanks.
How can i convert a hex string lenght 6 bytes for example string ='1122aaccddff'; with perl
to raw binary data of lenght 8 byes the last 2 bytes shoul be padded with zeros,
Specifically, I'm using the linux command:
find . -regextype posix-extended -regex '' ...
I just want to make sure the posix type I'm using is the type Perl uses, since that is by far the one I am most familiar with.
Is it possible to load a module at runtime in Perl? I tried the following, but it didn't work. I wrote the following somewhere in the program:
require some_module;
import some_module ("some_func");
some_func;
I'm wondering if there is an equivalent to Qt's signal/slot mechanism for Perl. I have looked into POE, but since it's huge, I couldn't find anything useful.
Thank you in advance,
Do we have a preg_callback equivalent in Perl ?
Lets say I want to match something and replace it with the return value of the function that is called with the matched thing.
I have a hash in Perl which has been dumped into from some legacy code the name of the key has now changed from simply reqHdrs to reqHdrs.bla
$rec->{reqHdrs.bla}
My problem is now I cant seem to access this field from the hash any ideas?
The following is my error
Download Script Output: Bareword "reqHdrs" not allowed while "strict subs" in use
Hi everyone,
I am trying to write a simple Perl CGI script that:
-runs a CLI script
-reads the resulting .out file and converts the data in the file to an HTML table.
Here is some sample data from the .out file:
10.255.202.1 2472327594 1720341
10.255.202.21 2161941840 1484352
10.255.200.0 1642646268 1163742
10.255.200.96 1489876452 1023546
10.255.200.26 1289738466 927513
10.255.202.18 1028316222 706959
10.255.200.36 955477836 703926
Any help would be much appreciated.
-Sebastian