ers@perl.org>>
Subject: Re: search and replace
Op 29-06-16 om 06:35 schreef Danny Wong:
Hi Perl GURUs,
I have a json file that needs parsing.
Here is a typical string I’m searching for. I want to delete everything but the
last 2 character “],”.
],
[
"a
Hi Perl GURUs,
I have a json file that needs parsing.
Here is a typical string I’m searching for. I want to delete everything but the
last 2 character “],”.
],
[
"ansible",
"2.1.0.0-1ppa~trusty",
false
],
Here is what I tried:
I slu
Nevermind. I used regex to accomplish what I wanted instead of the split
command. Thanks guys!
From: Danny H Wong mailto:dannw...@cisco.com>>
Date: Thursday, March 19, 2015 at 2:25 PM
To: Perl List mailto:beginners@perl.org>>, Perl Beginners
mailto:beginners@perl.org>>
Subject: split regex
Hi P
Hi Perl GURU,
I have a string like this:
'Baseline: (_bMgvUBQ_EeKsP6DECdq0Lg) 1 "Initial Baseline" "Initial Baseline of
Component NGP-Diagnostics" Sivakumar Subas Oct 12, 2012 12:35:41 AM';
I’m trying to perform a split via \s (spaces) delimiter, but this give me a
partial return of "Initial Ba
Hi Perl Gurus,
What is the best module to use to read incoming emails from a particular
user? Any examples would be great to! Thanks!
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Sheman,
Do it the perl way, hash it.
1. Read both files
2. Put the lines into the key of a hash.
* While (reading files)
* $hash{$_}++;
Now you can print/process your hash key. There’s shouldn’t be duplicates.
From: Sherman Willden
mailto:sherman.will...@gmail.com>>
Date: Mo
eses gives me this output.
$1 is Danny Wong (danwong
yes the last ) is missing, so it looks like I’m close, I’m not exactly
sure what is missing.
On 5/6/14, 10:25 PM, "John SJ Anderson" wrote:
>On Tue, May 6, 2014 at 10:19 PM, Danny Wong (dannwong)
> wrote:
>
>> What
Hi Guys,
I have the following strings.
my $str1="^Modifications made by Danny Wong (danwong) on 2014/05/06
18:27:48 from database brms";
#$str1="^Modifications made by danwong on 2014/05/06 18:27:48 from
database brms²;
What is a regular expression where I can extract
>
>HI Perl GURU's,
Is there a way to download a zip file from a web page and have the
script
simulate pushing the "accept" button on the webpage? This is required
before you can download a zip or any file. Any ideas? Thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For a
Hi all,
I received a custom compiled perl binary version, years ago. The path
location of the perl binary and lib paths are hardcoded. Is there a way for me
to override this path setting, so the custom perl binaries are not looking at
that specific directory or needs to be in the specifi
Hi all,
I would like to perform the following, start X (say 10) number
of threads to perform some operation (ex. Copy command), I would like to
exit or return out of the thread(s) that takes too long ( ex. 30 minutes
). I'm thinking I should spawn an independent thread (a watch thread)
and
Hi All,
I'm moving from perl version 5.8 to 5.12. In 5.8 code, I use the
dbmopen function to read a perl db, but that function doesn't seem to
work with version 5.12. any ideas if the function name changed or I need
to use something else? Thanks.
--
To unsubscribe, e-mail: beginners-unsubs
12 matches
Mail list logo