Skip to main content

Questions tagged [perl]

Perl is a powerful, high level programming language. Questions about Perl should be limited to the Perl development environment, running Perl, or using Perl to automate tasks on your computer.

0 votes
1 answer
205 views

How to get stock quotes in KMyMoney, GNUCash, or other programs using old/broken perl Finance::Quote

TLDR: I am unable to get online stock quotes from within GnuCash and KMyMoney. It seems that something is wrong with the perl Finance::Quote module. What is the easiest way to fix this? Background ...
rand'Chris's user avatar
3 votes
3 answers
657 views

Bash [[ test =~ regex ]] vs perl command result

Is the bash operator =~ equivalent to a perl invocation? filename="test-33.csv" regex="([^.]+)(-\d{1,5})(\.csv)" With bash test: if [[ "$filename" =~ $regex ]]; then ...
rellampec's user avatar
  • 133
2 votes
1 answer
327 views

Install Perl on Windows for LaTeX Packages Without Dependency Issues

I'm currently facing challenges with installing Perl on my Windows system, which I need for handling specific LaTeX related packages. My journey so far has led me through a series of issues, and I'm ...
Foad's user avatar
  • 672
0 votes
1 answer
61 views

database connection error with perl app (rt 5 - request tracker) connecting to Postgres database

On a CentOS 9 system I installed postgres via dnf # dnf info postgresql Last metadata expiration check: 3:26:33 ago on Tue 21 Nov 2023 12:13:48 PM PST. Installed Packages Name : postgresql ...
msacks's user avatar
  • 11
0 votes
1 answer
68 views

AWK replace some special new line to one line

i have some log like this: 2023-11-15T08:59:28.000000+00:00 database-1 # Time: 231115 8:59:28 # User@Host: rdsadmin[rdsadmin] @ localhost [] # Thread_id: 3 Schema: QC_hit: No # Query_time: 0....
dvthanh's user avatar
0 votes
0 answers
112 views

Perform lookup on two files

I have a csv file that get's SFTP'd to a RHEL box I have setup. It then gets transformed a little before another process SFTP's in and grabs it sending it off to be imported to a DB of a 3rd party. I ...
Jeremy's user avatar
  • 1
1 vote
1 answer
450 views

Combine two regex formulas into one (using notepad++)

Si cum îi semănau ! Fraţi buni, puindu-si, ca si el, tot sufletul în ceea ce făceau, muncind din greu, luptind din greu, jert- findu-se, fără nici un gînd de răsplată. Simțind în tot ceasul, ...
Just Me's user avatar
  • 866
2 votes
4 answers
338 views

REGEX Find the string between 2 strings

In the example below, I want to use regex as to find the html tag <sony> between other 2 lines. <table width="697" border="0"> <tr> <td&...
Hellena Crainicu's user avatar
2 votes
0 answers
385 views

Clear previous command output (not full screen)

Example This is on the terminal screen: user@host ~ % ls dir1 dir2 dir3 user@host ~ % whoami user user@host ~ % date Wed May 24 16:25:26 -03 2023 user@host ~ % [CURSOR IS HERE] I'm trying to ...
ranemirusG's user avatar
0 votes
1 answer
745 views

How to install Perl modules in custom location?

I'm currently trying to install a Perl module, but the web hosting has specifically locked the custom Perl user install directory (they have a "install service" charging 7$ per module). So ...
sebastian nielsen's user avatar
0 votes
1 answer
54 views

regexp in perl fails

Why is this failing? WGroleau@MBP Chords % perl -p -i -e '(Trinidad|Donoso|Clifton|Frincke|Little|Church|Antonio) XYZ :\1\t:g;' *txt Bareword found where operator expected at -e line 1, near ") ...
WGroleau's user avatar
  • 814
0 votes
1 answer
102 views

Perl LWP: how can I print the fetched result?

What are the elements of the class response from this code: Or, how can I print the entire object response ? #!/usr/bin/env perl # Example code from Chapter 1 of /Perl and LWP/ by Sean M. Burke # ...
user1766349's user avatar
1 vote
1 answer
230 views

Perl LWP: running a script returns an error

I have installed Bundle::LWP and after several minuets I'm getting this $ perl -MLWP -le "print(LWP->VERSION)" 6.68 which sounds OK. However, running this script #!/usr/bin/perl # ...
user1766349's user avatar
0 votes
1 answer
417 views

Add line number at the end of each line in a text file

I have a text file which contains thousands of lines with same links. I want append the line number at the end of each line. For example; https://example.com/ https://example.com/ these links would ...
Denied Access's user avatar
0 votes
1 answer
53 views

Linux - Find string and then end of section

I have an XMLTV file. I need to get all of the programme sections for a specific channel. An example snippet: <programme start="2023031305000 -0400" end="2023031305300 -0400&...
Dan Marcoux's user avatar

15 30 50 per page
1
2 3 4 5
34