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

learn more… | top users | synonyms

-1
votes
0answers
16 views

HTML conditional statement *beginner*

I’m trying to automate user creation in our division. Following are the one I’m trying to do at the start. Form to get user credentials, After entering the credentials, request will go to LDAP ...
1
vote
0answers
11 views

Remote server connection and execution of codes

How to connect to a remote UNIX/Linux server, perform a few operations and extract the output and print this in a local machine? I am writing a shell or a Perl script but I have not found a solution ...
0
votes
0answers
4 views

SSH to a windows server and run a command in that command server

so I have a set of commands that need to be run in a windows server 2003 (basically ant command to run eclipse-webdriver java code in cmd) . I want this commands to be run remotely using a click of ...
0
votes
0answers
5 views

How to let CGI input field return to its initial fresh state when certain condition is fulfilled

I have a CGI script that looks like this. #!/usr/local/bin/perl use CGI ':standard'; print header; print start_html('A Simple Example'), h1('A Simple Example'), start_form, "What's your name? ...
2
votes
5answers
29 views

Get string from two rows

Want to convert output to variables, from the first row want to take every time the last result. There are 1 server(s) in cluster: SQL_GDM MS_SQL_sql1.local.com---RUNNING There are 2 server(s) in ...
-1
votes
0answers
24 views

usin require statement in perl which is callid from php doesnt work

$my_dir=pwd; chomp($my_dir); require "$my_dir/config.hash"; I am including conf file in following ways in my perl code. I am using exec command of php to call my perl script. In perl script I am ...
3
votes
1answer
35 views

How do you write wrapper module?

I'm writing a download sub module, I would like it looks like this: Download.pm Download/Wget.pm Download/LWP.pm Download/Curl.pm Download/Socket.pm My Download.pm should provide an api sub ...
0
votes
1answer
48 views

Perl: Setting up environmental variables without touching code

I have a perl file that want to understand certain environmental variables. So I can add: $ENV{PLACK_ENV} = 'development' in the code and its ok. But is there a way to do this without touching the ...
2
votes
1answer
35 views

How does Perl store/deal with very large numbers? Should one use a module in lieu of Perl's default handling method?

I needed to add 50 digit numbers, so I dealt with them as "strings" and wrote my own functions for adding them together. Afterwards, for the hell of it, I tried this: readFile(shift (@ARGV)); sub ...
-1
votes
1answer
34 views

Making an HTTP Request When there is a Javascript

I would like to generate an http request. I believe the following code works except for the current my $uri line because I tried it with the google website (uncomment out that line and comment out ...
2
votes
5answers
95 views

Is there a way to do a “reverse” .=?

I want to add 0 to the front of $num: $num = "0".$num; This works fine, but is there a way to do it with $num.= plus some sort of operator or something to tell it to concatenate in the opposite ...
1
vote
2answers
29 views

Buffering an output file

I have an output file that gets created in my perl script. I'd like for all of the information to get outputted at once rather than gradually. This would be done via buffering? How would this work? ...
1
vote
2answers
45 views

HashLists in Perl

#!/usr/bin/perl -w use strict; my $string = $ARGV[0]; my @caracteresSeparados = split(//,$string); my $temp; my @complementoADN; foreach my $i(@caracteresSeparados){ if($i eq 'a'){ ...
0
votes
2answers
18 views

Perl Tie::IxHash - update values using a value list

I have a Tie::IxHash object that has been initialized as follows: my $ixh = Tie::IxHash->new('a' => undef, 'b' => undef, 'c' => undef); and later on I want to assign a list of values ...
1
vote
2answers
25 views

Backreferences undefined after finding pattern in perl v5.14.2

I found it strange that backreferences ($1,$2,$3) were not working in my original code, so I ran this example from the web: #!/usr/bin/perl # matchtest2.plx use warnings; use strict; $_ = '1: A silly ...

1 2 3 4 5 1856
15 30 50 per page