Questions tagged [perlscript]

PerlScript is a scripting engine to run Perl scripts on either ASP or WSH.

PerlScript was initially solely an ActiveX Scripting Engine produced by the company ActiveState for use with Microsoft's Internet Information Services that allows for programmers to use -based code in addition to, or in place of, or in the context of web servers running the protocol.

Subsequently Apache::ASP was created for the web server, which allows for coding with only Perl, but neither VBScript nor JScript. Similar to VBScript, PerlScript can also be used to write programs for Windows Script Host .

52 questions
3
votes
2 answers

Removal of special characters from string using perl script

I have a string like below stringinput = Sweééééôden@ I want to get output like stringoutput = Sweden the spl characters ééééô and @ has to be removed. Am using $stringoutput = `echo $stringinput | sed 's/[^a-z A-Z 0-9]//g'`; I am getting…
sravani srinija
  • 73
  • 1
  • 1
  • 7
3
votes
2 answers

Ways to call a function in Perl

Can I call a subroutine by taking its name dynamically as below? printf "Enter subroutine name: "; $var1 = ; # Input is E111; $var1(); Function E111: sub E111(){ printf "Hi, this is E111 & Bye \n"; } Is there a possibility to do it…
Sriram P
  • 179
  • 1
  • 13
3
votes
2 answers

what does " if (!((-s) && (some condition))) " in perl do?.

Hi I am a beginner at perl. I came across this statement and read some of the answers in Stackoverflow that said that it checks for non-zero file size. Pls explain.
Saurav Ojha
  • 145
  • 1
  • 1
  • 7
3
votes
1 answer

Getting an error while selecting the language of MS Script Control 1.0 as Perl Script

In my VB 6 application, I am using Script Control 1.0 for running external scripts through my application. But while running, I am getting the below error. "Error running Perl script: A script engine for the specified language can not be…
2
votes
1 answer

How can I create an HTML button with an action and append it to the DOM using PerlScript?

I'm specifically talking about the IE embedded script language "PerlScript" from ActiveState. I currently have the following, but when button 3 is pressed, no action happens. perlscript baby!
Mike Caron
  • 5,674
  • 4
  • 48
  • 71
2
votes
1 answer

merging columns but it goes into a new line in perl code

I am pretty new to Perl codes, and I am merging some datasets with the following code. The data is set up as such: first row specifying the sample names, followed by the counts on the second, third columns.... The first column specifies the gene…
jacquelynesun
  • 33
  • 1
  • 3
2
votes
1 answer

How can i acces shell environment variables in a Perl script

What i have I have a Perl script that check connection to oracle database .Here is my code #!/usr/bin/perl use DBI; my $ORACLE_SID = $ENV{'ORACLE_SID'}; $\="\n"; print "exported variable=$ORACLE_SID"; print "Connecting to DB.."; my $dbh =…
Pratheesh
  • 565
  • 4
  • 19
2
votes
1 answer

Perl how to pass array as an argument to another Perl script

I have a 2 perl scripts where primary_script.pl would be calling secondary_script.pl script by passing array as an argument. My code is shown below: primary_script.pl #!/usr/bin/perl use Data::Dumper; my @array = qw/1 2 3 4 5/; print…
vkk05
  • 3,137
  • 11
  • 25
2
votes
1 answer

How to convert a generated text file to Junit format(XML) using Perl

How to convert a generated text file to Junit format(XML) using Perl I have a text file generated which is in the format: Tests started on Fri Oct 19 14:11:35 2018 Test File Comparison Result ========= ================= abc.msg …
randomguy
  • 357
  • 2
  • 9
2
votes
1 answer

Why are writes to an html page buffered in Internet Explorer? Is there a way around it?

I've written a very small html page for IE that uses client-side PerlScript. In the script, I launch a separate process which creates a TCP socket. After launching the process, I start a listener which appends HTML to the end of a div as lines are…
Mike Caron
  • 5,674
  • 4
  • 48
  • 71
1
vote
1 answer

Invoking oracle storedprocedure through perl script

Can some one please help me to let me know how to call a oracle subroutine in Perl script I have a procedure already existing in oracle db. Say below Case 1) return a ref cursor and accept a IN parameter. CREATE OR REPLACE PROCEDURE…
Poorvi
  • 125
  • 8
1
vote
0 answers

Generation exe file from perl script using active state perl 5.26

I want to convert my perl script to .exe using Active state perl 5.26 in windows 10. I tried searching it but found it for older versions. I can't find Par::paker for active perl 5.26. Is pp not supported for 5.26? What's the alternative for pp…
srinani
  • 11
  • 1
1
vote
1 answer

How to check status of previously executed command in perl

I am completely new to Perl . I have a Perl script which check connection to a oracle database running in a container . Here is my code #!/usr/bin/perl use DBI; $\="\n"; print "Connecting to DB.."; my $dbh =…
Pratheesh
  • 565
  • 4
  • 19
1
vote
1 answer

Incorrect behavior of perl module `Getopt::Long::Subcommand` in perl version 5.24.1

I'm using Getopt::Long::Subcommand to parse the command line arguments. But I found that in some of Perl versions. This module has incorrect behavior. For example if I run ./ViewBS BisNonConvRate --sample bis_WT.tab.gz,WT. I expect the output as…
xie186
  • 487
  • 4
  • 9
1
vote
1 answer

How to change a name in a file for another in perl with hash?

I have a file like this. >;1; AACTCTGGGACAATGGCACACGGGAAACAGATAATGAACGATCAGCACAGGGAACTAGCG >;2; AACTCTGGGACAATGGCACACGGGAAACAGATAATGAACGATCAGCACAGGGAACTAGCG >;3; AACTCTGGGACAATGGCACACGGGAAACAGATAATGAACGATCAGCACAGGGAACTAGCG I would like to change…
1
2 3 4