Perl is a high-level, general-purpose, interpreted, dynamic programming language.

learn more… | top users | synonyms

0
votes
1answer
14 views

Processing external page with perl CGI or act as a reverse proxy

There is a page residing on a local server running Apache. I would like to submit the form via a GET request with a single name/value pair, like: id=item1234 This GET request has to be processed by ...
2
votes
2answers
28 views

perl - sort by MAC Address

I have a long .csv file that consists of device information. Each line is a unique device with its own info listed as such: MACaddr,,,,Date,Date,,"b,n",,blahblahblah. It's irrelevant what that all ...
1
vote
1answer
24 views

Perl - Breaking out of a system/backticks command on keypress if it takes a long time

I have a problem I am hoping someone can help with... I have a foreach loop that executes a backticks command on each iteration, such as greping a folder in a directory for a string (as shown below, ...
0
votes
0answers
35 views

Perl script: analyse table items occurrence and return result in a new column

The if statement is having the condition $item2 eq $itemto || $item eq $itemto and returning 1 if true, 0 otherwise. But the problem is it is analyzing one by one element in table 2. This is not my ...
-2
votes
0answers
38 views

Replace using system command in Perl?

I'm using the following script to replace /2013/07/31-05:54:14/ with current date plus three minutes in replace.SEL file. I'm not able to print the date present in $a using last system command. pls ...
1
vote
3answers
30 views

How to substitute dates in Perl?

perl -pi.back -e 's/2013/07/31-05:54:14/2014/07/31-00:00:00/g;' /tmp/ranjan/replace.SEL I'm using the above one liner to replace the date from 2013/07/31-05:54:14 to 2014/07/31-00:00:00. But I'm ...
1
vote
2answers
27 views

Add attribute to xml with XML::Simple

I am trying to add an attribute to existing XML, using XML::Simple. <arbre> <branche name="courbe" > <description> <![CDATA[une belle branche]]> ...
1
vote
2answers
36 views

How to add time and replace it in a file in Perl?

i have wriiten the following code to fetch date from server and to display it in yy/mm/dd-hh/mm/ss format. #!/usr/bin/perl system(`date '+ %Y/%m/%d-%H:%M:%S' >ex.txt`); open(MYINPUTFILE, ...
1
vote
2answers
39 views

Perl variable inside a HREF

Is it possible to have a variable inside a href HTML link? In other words, could I dynamically generate a series of html links by iterating through an array? For example, like in this Perl CGI ...
1
vote
1answer
29 views

delete data from database

I am trying to delete some data from a database. But it shows me the following error: Unmatched right curly bracket at C:/wamp/bin/apache/apache2.2.22/cgi-bin/ova/db.pl line 13, at end of line\r ...
0
votes
0answers
54 views

Parsing a 20 million line XML file with PHP [duplicate]

Good morning all, I have been tasked with processing an XML file that has 20 million lines and placing the contents into a MySQL database (on a daily basis). The document has the following ...
-5
votes
2answers
56 views

How to extract the information from tab delimited large file using awk in the following way? [on hold]

input a 1 20 4 50 b 5 20 2 90 r 5 70 now i want to retrieve the information >=50 from the 3rd column and its respective letter of 1st column. output a 4 50 b 2 90 r 5 70 ...
-1
votes
1answer
45 views

regex for nested tags in perl

I got this solution but this is not working for nested tags like multiple span tag. Can you help me out? message =~ s# &lt; (?<tag>span|em|ul|ol) &gt; (.*?) &lt; / ...
1
vote
2answers
44 views

Perl issue with local::lib

I am trying to use local::lib as I don't have rights on the system and I have downloaded a local library and used bootstrap technique. perl Makefile.PL --bootstrap make test && make install ...
2
votes
1answer
32 views

Perl opening dynamically generated files

I am using CGI script for my website. And I have problem with opening a dynamically generated file. Here is the code: #!/usr/bin/perl my @output = `/export/es_share/Zhou/./notification_finder.sh ...

1 2 3 4 5 1955
15 30 50 per page