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
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.
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 .
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!
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?
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,
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,
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;
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
I have a hex string(lenght 48 chars) i want to convert to raw bytes with the pack function in order to put in in win32 vector of bytes.
could someone help how i can do this with perl ?
Hi I'm looking for a Perl RESTful framework that have to :
work under apache2/mod_perl2
be simple
be elegant
be light
be flexible
Am I just dreaming or can I avoid the 'Roll our own' approach?
What framework would you recommend?
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
I am doing the below in a perl script:
my @pm1_CS_missing_months = `sqlplus -s $connstr \@DLmissing_months.sql`;
it takes the output of an sql query.
if i have to check for no rows selected,how could i do it?
i want to do like this:
if(no rows selected)
{
do this;
}
I have a shell script, with a list of shell variables, which is executed before entering a programming environment.
I want to use a perl script to enter the programming environment:
system("environment_defaults.sh");
system("obe");
but I when I enter the environment the variables are not set.