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

learn more… | top users | synonyms

0
votes
0answers
7 views

Read XML file into user perl class using XMLin()

So I have a perl class which is a hash table. In this class I have one scalar and 2 arrays of hash tables. I am using XML simple and XMLout() to ouput the xml file of the data structure I am using. ...
-3
votes
0answers
6 views

shorten (subtract) header and remove empty line in fasta file by perl

I have a fasta file like this with headers like this: GL13245678 ABCDEDERFSE GL123456789 ABDFDRAGDTGEGAGFDAS GL1254367890 AFGHSRSGFGSHSFG I want to change the header to contain ...
0
votes
4answers
60 views

Perl Syntax characters “::”

I can't find anywhere what the :: is for in Perl. Example: $someVariable::QUERY{'someString'}; Thanks!
0
votes
1answer
15 views

Perl vSphere SDK adding multiple disks soap error:

I am able to add the disks linearly like below: my $vmSpec = VirtualMachineConfigSpec->new(deviceChange => [$devSpecs[0]]); $vmView->ReconfigVM(spec => $vmSpec); my $vmSpec = ...
-1
votes
1answer
36 views

perl script : procedure to delete table rows

Friends... I am testing this perl script which basically call procedure and run DELETE on 2 tables. Questions: Is there any issue with the procedure or calling procedure in perl? Can I user 2 ...
0
votes
1answer
36 views

Perl not including custom modules

I recently had to move from a shared account into a VPS, ever since I moved into the VPS I cannot get some Perl scripts that were not written by me to work anymore. The main script starts like this: ...
1
vote
2answers
54 views

Grep word in one file, and use that word to match in FASTA file, adding the FASTA sequence to the first file

I want to grep several words in file1, and use each word to grep what follows after its match in file2.fasta. And then I want to add the thing that followed the match to the word I used into file03, ...
1
vote
2answers
31 views

Print out all remaining lines in Perl

I'm not new to Perl, but I use it far too rarely to learn everything one needs to remember. Now I'm writing a simple script that iterates over each line of a file and makes a few changes as needed. ...
0
votes
4answers
45 views

Perl regex replace first name last name with first name last initial

I want to have the output of $var below to be John D my $var = "John Doe"; I have tried $var =~ s/(.+\b.).+\z],'\1.'//g;
2
votes
1answer
59 views

I receive “syntax error near my ” but a nearly identical line works fine earlier in the code

I receive the error 'syntax error at line 41, near "my "'. Line 41 is the 12th line in the code snippet. I tried declaring $line before the string assignment, changing the assignment to a simple ...
-1
votes
1answer
30 views

Using FIFO pipes to communicate between Perl programs

hi everybody i have 2 perl programs: the first exemple.pl has a form let's say two jtextfield and in which i declared two variable $name and $psswd to recuperate what i wrote in jtextfields...i want ...
0
votes
1answer
24 views
0
votes
0answers
12 views

Awstats - Configuration Options through command line [closed]

Is it possible to pass Awstats Config file parameters like 'DnsLookup' via commandline? I have around 1000 vhosts per server and it would be tough to modify each of these config files. Any other way ...
2
votes
4answers
70 views

Cannot understand the following Perl syntax

I am a first timer with Perl and I have to make changes to a Perl script and I have come across the following: my %summary ; for my $id ( keys %trades ) { my ( $sym, $isin, $side, $type, ...
0
votes
2answers
30 views

How to use Perl to list certain pattern from multiple XML files

I want to create list of all filenames with *.ini extension mentioned in content of certain set of XML files in single folder. They all include full path, but I need only Filename.ini Basically it ...

1 2 3 4 5 1865
15 30 50 per page