Questions tagged as 'perl'

1
answer

Insert perl timer

I need to put a timer in that perl below: It works by firing emails in a row to the end of the mailing list. Example if the list has 1 thousand emails it will fire e-mail until the end. I would like to put a timer in this code EX: fi...
asked by 06.04.2018 / 20:25
0
answers

Linux Script - Search, Copy, Paste and Change file values te texto [closed]

I have these 3 files: Access.txt : Large text file with records per row and columns separated by " ; ". < br> NewAcess.txt : List of new hits to add. NewUsers.txt : List of new users to add. Sample Files:...
asked by 08.04.2015 / 20:02
1
answer

How do I return the number of lines that appear with a certain beginning?

I wanted to open a document and have it return to me the last number in a row containing '>' as a reference. That of all rows that have this '>' . or that it read the amount of '>' that existed in the file and return...
asked by 30.06.2014 / 17:10
1
answer

How to get the last occurrence of Virgula [PERL]

Well I have a perl script that formats a json by leaving it in this format: {"nome1":"123","nome2":"123","nome3":"123",} But I want only the last occurrence to be just the key without the comma before. like this: {"nome1":"123","nome2":"1...
asked by 18.09.2017 / 16:56
2
answers

When deconstructing a perl-based one-liner, the error "Can not modify single ref builder in scalar assignment"

export dev2='/dev/sdb'; perl -'MDigest::MD5 md5' -ne 'BEGIN{\$/=24};print md5(\$_)' $dev2 Returns the following error:    Can not modify single ref builder in scalar assignment at -e line 1, near "1024}"   BEGIN not safe after errors - com...
asked by 30.05.2015 / 19:33
0
answers

How to disable numberLong in mongo 3?

How to disable numberLong in mongo 3? I've tried mongo.native_long=0 and it did not work. I'm using perl with mongoexport I'm using perl with mongoexport     
asked by 12.05.2015 / 03:09
1
answer

Why some methods have '::'

Why some methods such as Perl or Ruby: Net::FTP , have these two points; how is the construction of the methods of this class and why it is created this way (with this syntax) and not of the form currently used by current libraries: HTT...
asked by 12.03.2017 / 04:12
1
answer

Getting data from one Json and saving on another [Perl]

Good night, I would like to know if there is a way to get data from one json and save it to another automatically without needing to treat json as "text" (regex) in case, I already used perl's JSON module use JSON;) but it was for a simpler util...
asked by 19.09.2017 / 23:27
2
answers

Analyzing resource consumption by script

I have a server with Ubuntu Server 12.04 LTS OS, on this machine I have apache2 with PHP5 and PERL installed, but it consumes a lot of CPU resources, I would like to know if it is a problem script anymore for this I would have which review one b...
asked by 26.09.2014 / 14:57
1
answer

How to attach file in email?

I have this Perl code that sends emails from a list with subject and body, I need one that does this but it is possible to attach some file of my choice. Can anyone help me? #!/usr/local/bin/perl $ARGC=@ARGV; if ($ARGC !=4) { printf "Você...
asked by 20.06.2015 / 22:16