Click here to Skip to main content
15,889,909 members
Everything / Programming Languages / Perl

Perl

Perl

Great Reads

by Omar Al Zabir
Protect ASP.NET and WCF from various brute force and Denial of Service attacks and speed up response time using nginx.
by Oscar-Tark
If you are looking into white hat hacking, it's good to know old school tactics used for overflows.
by Oscar-Tark
In this article, we will be looking at a more advanced version of a buffer overflow attack.
by anshulskywalker
Understanding of Example Based Machine Translation (EBMT) system and how to create your own using exisiting tools

Latest Articles

by Paul Aurelian Gagniuc
This article shows how to mix two signals into a third, in variable proportions.
by Oscar-Tark
In this article, we will be looking at a more advanced version of a buffer overflow attack.
by Oscar-Tark
A basic formatted string exploit shows you how small errors in programming with the printf function can be a lethal weapon for hackers looking to compromise a system.
by Shameel
Part 2 of this multi-part article series compares SQL Server and PostgreSQL article, database structure, language differences, data type mappings, functions and operators and other important considerations for migration..

All Articles

Sort by Updated

Perl 

16 Jan 2011 by #realJSOP
I think the only way you could pull this off is if the application in question could be constrained in a window that your own application creates. Since X-Plane is a game, and since most game companies would never even consider running their game in a window that wasn't borderless and full...
8 Dec 2011 by #realJSOP
296 MILLION google results regarding "perl"[^]...and you couldn't find the info you seek?
26 Aug 2013 by _Asif_
Check this linkPass the values to the sybase stored procedure using DBI-Sybase module and exexute the procedure[^]
9 Jul 2013 by _R_S_
I am looking for examples to call a C++ dll in a perl code without using COM. The library is written in visual studio 2010. I was searching through and found declaring the method using extern C __dllexport and writing a perl script using win32::API->new() can help me achieve the same. Is there...
11 Jul 2013 by _R_S_
Found it..This link worked for me successfully. http://eli.thegreenplace.net/2006/12/04/compiling-c-dlls-and-using-them-from-perl/[^]
27 Sep 2011 by A V Suresh Reddy
I need the following:1. I want to open a new command prompt window with PERL script2. Run the remaining PERL script on that window.How to do this?Please answer me if you know.this is very urgent help me............
3 Aug 2004 by aa2max
Receive email notification if your website is down or slow
28 Sep 2011 by abhi5306
HiI want to pass a hashref to a CGI script.when I pass the hashref using the hashref value received by abc.cgi is a string of address but then i can't resolve this address so that i can use it as a hashref in abc.cgi. What should i do?
28 Sep 2011 by abhi5306
Hihow can i call a perl function say abc() present in abc.pm from a javascript code?
18 Aug 2010 by Abhinav S
You can create a web service in PERL using a utility called SOAPLite[^].
16 Oct 2011 by Abhinav S
It would depend a lot on the area where you are located and what opportunities you have around you.Java would probably be the right choice in terms of number of opportunities.However, if you can carve a niche for yourself in C and Cobol, you are likely to get paid more as there is less...
16 Jan 2013 by Abhinav S
First you must understand that object oriented programming is not about a language but more about a paradigm and a concept.I think Smalltalk would be one of the best ones in terms of OOPS.Other languages like Java / C# offer features which are closer to functional programming.However,...
17 Mar 2013 by Abhinav S
Tryhttp://fsa.sourceforge.net/[^]http://www.eti.pg.gda.pl/katedry/kiw/pracownicy/Jan.Daciuk/personal/minim.html[^]
6 Apr 2015 by Abhinav S
You can actually launch the perl program as a separate process for e.g. Process myProcess = new Process(); ProcessStartInfo myProcessStartInfo = new ProcessStartInfo("perl.exe"); myProcessStartInfo.Arguments = "script.pl"; myProcessStartInfo.UseShellExecute =...
11 Dec 2014 by Adamdew93
I've recently got onto a University course which requires the knowledge of the 3 different languages and I have never previously coded before and I am looking for advice on the best way to code.Any help would be appreciated .
13 Apr 2009 by adminmyserver
Ruby on Rails application for the world's fastest server data.
11 Jan 2012 by ADubey87
#!C:\Perl\bin\...
2 Feb 2007 by alex turner
How to read an XML data source from file or AJAX and then represent it in Internet Explorer as a GUI
12 Jun 2014 by Alexander24
I am trying to parse a flat file using perl and then translate those into aJSON format so that it can be read by javascript. So far I am able to read the text file using perl, but I am very confused about the parsing part. Can anyone guide me in the right direction or help me with some links...
17 Mar 2013 by ali_crash
Hi guysI am working on a project that my professor asked.I need an algoritm to create a fsa for stringsexample:takes this sentences: "ali goes to school"and create a graph like thisSTART->ali->goes->to->school->ENDthe graphical part of drawing a chart like this is not...
25 Apr 2012 by Amar Venkat Jammula
Hi,i m very new to perl and programming...pls help me....i have an XML which is below mentioned: 133752115 34390939283 ...
19 Apr 2012 by Amar Venkat Jammula
i m not able to follow... can you pls give me specific code...
17 Nov 2011 by ANANTH P
hi, here is my code in that i had merged the files and saved to a new file , and guide me how to create a ini file and how to list the files using perl codeQuote:my $samplefolder = $ARGV[0];opendir (DIR,"$samplefolder") || die ("Can't open the input folder for reading");my (@files)...
18 Nov 2011 by ANANTH P
I am new in perl pls tell how to rearrange the merge file I want change the arrangement like file4.xml, file2.xml,file3.xml & file1.xml sample files: file1.xmlheading1first authorsdasdasda Methadone
7 Nov 2010 by Andreas Gieriet
A Perl function gets an array of argumnents.That array is referenced by @_.I usually do the following:sub FunctionName { my ($arg1, $arg2, ... ) = @_; ...}In your case, you want to split the first argument of the argument array (@_).You have several options:sub...
9 Nov 2010 by Andreas Gieriet
See http://perldoc.perl.org/perldata.html[^] for a description on the meaning of $scalar, %hash, @array, and (list). Especially, search for @foo in that man page for an explanation on "mixing" arrays and lists with scalars.You may also check out an (old bust still valid) OO-Perl Demystify...
6 Jan 2012 by Andreas Gieriet
The issue seems to be, that your "if" condition will never be met (wrong assumptions and/or too complicated?).Note: XML is a free format, i.e. the content may be spread over multiple lines.If you need to modify the whole XML file, then it's best to slurp in the whole file into one string...
6 Jan 2012 by Andreas Gieriet
Classical application of XSLT: XML to XML.
6 Jan 2012 by Andreas Gieriet
Since my Solution 1 is not really applicable (the tags are not XML conformant), enclosed please find an alternative version in Perl.CheersAndi#!perluse strict;# file: { line NEWLINE } .# line: listitem | ANY_CHAR .# listitem: begin itemtext end .# begin: '
12 Apr 2012 by Andreas Gieriet
Brute force approach (let the computer calculate the problem as stated) for the sample data results in:count = 25168 % 1007 = 1000Hence, I dare to state that "Module" means modulo.CheersAndiPS: The code (a quick and dense hack to get going):static int Loop(int x, List v,...
12 Apr 2012 by Andreas Gieriet
Now the C++ version of Solution#3 above:#include #include #include using namespace std;class Requirements{private: class Req { public: Req(): _x(0), _y(0) {} Req(int x, int y): _x(x), _y(y) {} int x() { return _x; } int y() {...
28 Sep 2013 by Andreas Gieriet
Assumin you know what the Perl program achieves and assuming you have a suitable test suite to verify that functionality, then you may start as described below:1) Be aware: Perl has only a weak type system. C# has a far mor strict type system.2) So, first find out what the values represent...
10 Aug 2014 by Andreas Gieriet
How about this:$nr2++ unless $i%100;CheersAndi
3 Jan 2015 by Andreas Gieriet
This only makes sense as an isolated exercise to venture into new territory.If the source language (perl in this case) is too dense, translate it first into some invented pseudo code. Name each operation with a function name (e.g. substitute all ocurances of pattern X in variable Y by text Z,...
25 Oct 2015 by Andreas Gieriet
Google?E.g. enable perl apache?E.g. http://www.perlmonks.org/?node_id=9060[^].RegardsAndi
15 Oct 2011 by André Kraak
Have a look at this: How can I find and replace text in XML using Perl?[^]
10 Aug 2010 by anshulskywalker
Understanding of Example Based Machine Translation (EBMT) system and how to create your own using exisiting tools
9 May 2016 by AnvilRanger
A perl script is just another text file with a pl extension. You can use VB or VBA to write to a text file.You tagged the question VBA, but then as VB in the actual question. Which are you really using? Because writing to a file is different between the two.VBA:VBA - Text...
29 Sep 2013 by apurva gowda
public class TKomplex { public double real; public double imag; } public TKomplex ksum(TKomplex a, TKomplex b) { TKomplex res; res.real = a.real + b.real; res.imag = a.imag + b.imag; ...
29 Jul 2011 by Archit88
Hi all,can some one please tell me how the announce url work. what information did application / script need to send to "announce" url. and what you will get in return.for examplethis is url in traker http://torrent.fedoraproject.org:6969/announce[^]and this is hash# =...
27 Nov 2017 by Arlert
Hi and Happy new year.Is there anywhere perl script converter to other languages like c++ or c#?If yes, can you please give me link to it, or can you write this code:foreach $pair (split('&', $form)) { if ($pair =~ /(.*)=(.*)/) { ($key,$value) = ($1,$2); ...
22 Jul 2022 by armanvaneld
hi i try to match expression but not match What I have tried: #!/usr/bin/perl use warnings; use strict; my $s = "Regular expression"; $s =~ /Regular(.*?)/; print $s;
14 Aug 2015 by Arthur V. Ratz
EXEC dbo.EMPLOYEE_S_UPDATE @S_SALARY = 10;orEXEC dbo.EMPLOYEE_S_UPDATE 10;
14 Aug 2015 by Arthur V. Ratz
I suppose, that it should exactly work:#!/usr/local/bin/perluse DBI;use DBD::ODBC;my $dbh = DBI->connect("dbi:ODBC:dsnentry", '', '', {PrintError => 0})+;die "Unable for connect to server" unless $dbh;$dbh->{odbc_SQL_ROWSET_SIZE} = 2;$query="EXEC EMPLOYEE_S_UPDATE 10";my...
16 May 2014 by Arunavimal
My string_1 = "Noch befinden wir uns aber in der 1. Generation, so dass diese institutionalisierten Handlungsweisen nach wie vor durchschaubar und als menschliche Konstruktion ersichtlich sind. Der Institutionalisierungsvorgang endet erst im Zuge der Internalisierung der Folgegeneration...
5 Jun 2014 by ArunRajendra
Camtasia Studio is one of the most popular screen capture tool. NOTE: I am no way involved with Camtasia and this post is not to promote them.
29 Mar 2012 by Arvindabc
How to send enable password using expect i have written my code but having some issues in it .proc clearLine { conServerIp} { set password "lab" set enablepw "lab" set spwnid [ spawn telnet $conServerIp] expect { "Password:" { ...
31 May 2012 by Ashokraj29
Hi,I want to move a file from a linux to FTP.Problem is the filename.let us consider filename is abc.txt .. After processing it will become as xxxxx_abc.txt-2012-05-30-1625The thing is i want to pick the processed file with help of its orginal filename and to put it in FTP using...
27 Jun 2012 by Ashokraj29
my $dbHit= $DB->prepare($db_statement); $dbHit->execute(); my $isHoliday = 'f'; while (my @key=$dbHit->fetchrow()){ my $account = padZero($key[0],9); my $tdate = $key[1]; my $code = $key[3]; my $item = $key[2]; my $default = 'CMB';}The problem is I'm...
29 Nov 2010 by asjadazeez
Hello,I have this small code to do in perl and i am now very sure of how to do it. I have read a line from the csv file int0 $_and now i need to extract a part of the string from it.Ex line in csv file would be one;two;three;four;five;sixand i need to have a variable (a scalar) to...
2 Dec 2010 by asjadazeez
Hello, I am unable to do this in PERL although this i can do easily in C#.The problem is like this:I have a file name Eg: C:\foo\tempfolder\testfolder\data.txtand now i use the data.txt file extract some data from it and then write it back to another file with file name...
7 Dec 2010 by AspDotNetDev
I don't know Perl, but I can give you a general strategy.Find the first match. Remove all text up to and including it.Find the second match. Remove all text up to it.Search the remainder of the text.Also, some regular expression engines allow you to specify a starting position in the...
12 Feb 2010 by babusat
How to handle UTF8 format characters in Perl. for example while storing the utf8 value in string and comparing the two strings.
7 Aug 2011 by badour
pleas i want to find lanCactuse intrusion detection system source code , it was written by using perl language at 2003.pleas help me
9 Jun 2015 by Bassoo7
What would be the result of this statement in Perl echo "a > b"
3 Dec 2014 by BBCokeley
Hi all, and seasons greetings.Quick query really, as i am struggling to find an answer....Im looking for the location of the "BMC Proactivenet" snapshots folder that contains the code that writes the web report (basically i want to exclude all log files/xml files from the report), as the...
4 Dec 2014 by BBCokeley
UPdate:Found the folder and resulting code,pw/proto/web/html/scriptsThanks all who read.
5 Apr 2012 by bEGI23
Now i have a question to the professionals. Till 3 months ago i didnt knew anything about programming i thought this is just for very smart heads. I knew some things about Batch and VbScripting but then i found out by watching youtube that even "ME" could be a software programmer. I watched a...
1 Feb 2008 by Bharat Mallapur, sriraj
How to make your C# component callback a Perl subroutine
9 Dec 2019 by bhrgv_7
Hi while running a perl snippet getting error as : "Can't modify subtraction (-) in scalar assignment at /usr/local/intranet.tsp line 329, at EOF" #please let me know what mistake i'm doing here.Thanks my %vhost_dev-redirector = ( name => 'dev-redirector.com', ...
5 Aug 2012 by bibin gangadharan
Hi,Convert a grayscale image into rgb color image using VB.net?
27 Oct 2017 by BillWoodruff
I don't think the two examples shown are comparable. When the loop on the second example exits, information persists in a variable 'tentatives that will tell you how many iterations occurred to find the match ... if it found the match. The first example does not persist the iteration count. The...
2 Jan 2015 by bling
Your C or C# program can invoke the perl shell as an external command. Here is a C# example.https://social.msdn.microsoft.com/Forums/vstudio/en-US/ea9455e1-b254-49e1-99df-41718ea80b5b/how-to-run-perl-scripts-in-c?forum=csharpgeneral[^]Your C program can link to the Perl interpreter...
13 Dec 2011 by Brady Kelly
I have a brief to customise a WordPress installation to be used to give training, i.e. to host training content, simple tests, student progress records, and student progress reports.I think a custom post type would cover the training content pages quite well, but I will need to 'template'...
1 Jan 2014 by C For Code!!!
Hi every one, I am using ebay finding service api,In my project requirement is such that while showing products we are saving product ids and Item Id in my database . now on another page we are displaying these saved products.we are not saving any other information in my database except...
19 Dec 2011 by Career Web Helper
First,Fill data in 1st Div Dynamically by using and then by using Javascript you can fill 2nd Div with new
22 Aug 2014 by carefreeames
my $contents =~ s/FIND/REPLACE/g;
22 Aug 2014 by carefreeames
ftp> mput abc.txt-2012*ftp> mput ?????_abc.txt-*
7 Jan 2012 by Carlos Luis Rojas Aragonés
How to backup multiple databases using Perl
12 Jul 2012 by Carlos Luis Rojas Aragonés
A simple REST service with Perl and the Dancer framework.
13 Jul 2012 by Carlos Luis Rojas Aragonés
Simulate user interaction in console apps with perl
10 Jun 2010 by Chetrabbu
I try to use mail() function in php to sent to someone but it always show error :"Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\PHP\Email\sent_mail.php on line 7We...
18 Aug 2010 by Chief Endian
Removing Text Within Parentheses
12 Apr 2012 by Chris Losinger
that statement doesn't mean anything.are you sure it doesn't say "Modulate the answer by 1007" ?
11 Jan 2010 by Christian Graus
Scratch all of that. You're using PHP, and Perl ?
5 Aug 2012 by Christian Graus
This is not a question. It's not even a sentence, unless it's a command. What you want to do is impossible, I guess that's why you didn't even attempt it before asking us to do it. If you remove colour, you can't put it back. It can't be done.
14 Oct 2011 by ckulasekaran
Hi, I am newer in Perl and my first project is find and replace a particular tag in XML file. for example i want to find all and replace in sequence numbers for that . Thank you ....
30 Oct 2011 by ckulasekaran
Dear Sir/Madam, Smoking: May increase, risk of CV effects, Urge patient to stop smoking, or, discuss, alternative therapy.Here in the above coding line for every occurrences of ' comma(,) ' the content should be replaced as below . What is exact coding line in PERL......
6 Jan 2012 by ckulasekaran
Hi, I want close the tags in hierarchical way.This is my input.Use Microsoft Windows accessibility Magnify the display Change the size of text and icons...
5 Apr 2012 by Clifford Nelson
Pretty much stuck with C++. You can use Java also, but need to have Java installed, and to get the type of capability you see in .NET you will have to include add-ons that will also increase weight. Simplest is just C and live with a console application.
1 May 2012 by coco10
Can somebody please help me creating a regular expression to validate a username.the user name should be between 6-13 characters. is should contain only alphanumeric or _ characters. the first two and the last two characters should be alphabet characters.thanks.
30 Nov 2012 by codeninja-C#
Hi,You can easily do this task with c# without converting perl script. At first understand the logic of above code.Your output shows that it generate all the possibilities of color,car,time which is based on your test cases and text.txt file.--SJ
11 May 2014 by cookieburner
Please let me know how to convert wav file to text using coding in vbscript? or perl script ?
30 Oct 2015 by cookieburner
I tried using Finance::Amortization Perl library for generating pmt value but it do not match what i can get in excel sheet .my perl code is like this : my $am = Finance::Amortization->new(principal => ($total_invest), rate => (0.005), periods => 360 , compounding => 1, precision =>...
1 Nov 2015 by cookieburner
i solved this problem as it is supposed to take 5% interest rate .rate should be .05 instead of .005 .different simulations of this Finance::Amortization formula now giving same result as we can get in excel pmt formula ..still i need how to program pmt formula self in a perl script...
18 Feb 2014 by CPallini
See, for instance, here: SEARCH & REPLACE[^]. e.g.$s = "arun 36985";$s =~ s/ /,/;print $soutput:arun,36985
11 May 2014 by CPallini
If you meant: "how can I produce the hexadecimal dump of a WAV file" then have a look, for instance, at: Hex Dump In Many Programming Languages[^].
26 Mar 2017 by CPallini
You may find many examples and tutorials on the web, just using Google. See, for instance:Running external programs from Perl with system[^].