Hi!
I need to use NCurses, with Perl. I found some very short bits of text about it but no example at all.
Is there anyone aware of any existing guide online?
Thanks!
I make a recv call on a TCP socket and it tured out to be that the recv call is a blocking one even though the socket itself has set to be in non-blocking mode. So my question is just as simple as: how to implement a non-blocking recv on a perl socket? thanks in advance.
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
when I try to use a "third part module" in my perl script, I got some error message like
"unknown error, compilation failed in require at ... line xxx"
nothing else and the line mentioned in the error message is exact the same line I "use the module"...
my question is: are there any good practice to handle this situation? like a list to check or something else. thanks in advance.
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 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.
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
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 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?
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.
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?
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 .
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,
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!
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 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.
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.
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.