On 28 July 2010 01:31, Jane D. wrote:
>
> I'm basically retrieving an XML file from Digg. I can retrieve the
> Digg data okay, but am struggling with trying to process the returned
> data with Perl, largely on account with my unfamiliarity with XML
> processing, but also because I'm not entirely c
> "EW" == Erik Witkop writes:
EW> I have spent half the day looking at map and I still don't get it.
it is easier than you think.
EW> I don't get the EXPR versus BLOCK and how I can treat them differently.
that is mostly a syntax difference. you can have a single expression,
then a com
Hi Uri,
I have spent half the day looking at map and I still don't get it.
I don't get the EXPR versus BLOCK and how I can treat them differently.
I think I am close but my regex is not hitting.
/@final_results = map { m/^[a-zA-Z0-9]{3,4}?$/$1/ } @just_cust_codes;
foreach (@final_results){
pr
Hi,
If somebody can assist me with my query it would be much appreciated.
I'm basically retrieving an XML file from Digg. I can retrieve the
Digg data okay, but am struggling with trying to process the returned
data with Perl, largely on account with my unfamiliarity with XML
processing, but also
Thanks Uri.
It is time that I learned map. I typically lean on grep and =~ for
matching patterns. But map sounds like a great solution.
Thanks again.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
> "EW" == Erik Witkop writes:
EW> Thanks Uri.
EW> It is time that I learned map. I typically lean on grep and =~ for
EW> matching patterns. But map sounds like a great solution.
grep is NOT a regex function or has anything to do with regexes. get
that false association out of your head
On 07/23/2010 09:59 PM, Noah wrote:
> Hi there,
>
> I am trying to input a bunch of commands to an ssh session. One way to
> do it is to create a file and pipe it. Something like 'cat |
> ssh admin@' would work.
>
> But what If I just want to send a bunch of lines of text without
> creating a
On 7/27/10 Tue Jul 27, 2010 7:28 AM, "Sooraj S"
scribbled:
> I have a script which copies files from local machine to remote
> machine.
> parameteres : "-d" for directories, "-f" for files..
>
> GetOptions ('d=s{,}' => \...@dir,
> 'f=s{,}' => \...@fil);
>
> I want one more rename
> "EW" == Erik Witkop writes:
EW> So I have an array full of elements in the following format:
EW> 32F--sometext--x
EW> F32-sometext12-xxx
EW> I am only interested in the first portion before the first hyphen.
EW> I am able to grep to get that portion.
grep doesn't give back
Erik Witkop wrote:
So I have an array full of elements in the following format:
32F--sometext--x
F32-sometext12-xxx
I am only interested in the first portion before the first hyphen.
I am able to grep to get that portion.
@grep_results1 = grep(/[a-zA-Z0-9]{2,4}-/, @sho_port_small_array);
On 7/27/10 Tue Jul 27, 2010 8:21 AM, "Erik Witkop"
scribbled:
> So I have an array full of elements in the following format:
>
>
> 32F--sometext--x
> F32-sometext12-xxx
>
> I am only interested in the first portion before the first hyphen.
>
> I am able to grep to get that portion.
>
>
Hi,
I have a script which copies files from local machine to remote
machine.
parameteres : "-d" for directories, "-f" for files..
GetOptions ('d=s{,}' => \...@dir,
'f=s{,}' => \...@fil);
I want one more rename option "-r" which should be used only if "-d"
is specified ie only for dir
So I have an array full of elements in the following format:
32F--sometext--x
F32-sometext12-xxx
I am only interested in the first portion before the first hyphen.
I am able to grep to get that portion.
@grep_results1 = grep(/[a-zA-Z0-9]{2,4}-/, @sho_port_small_array);
Now I want to print
On Jul 26, 3:22 am, sharan.basa...@gmail.com (Sharan Basappa) wrote:
> Hi,
>
> Can someone tell me how to convert an array to hash.
>
> Each array entry has a row of values
> e.g. a(0) = ab cd ef; a(1) = mn de fg
>
> The hash array needs to be constructed with one of the element in the
> array row
M.Lewis wrote:
>
> On 07/27/2010 09:15 AM, Ron Bergin wrote:
[snip]
>>
>> If you don't want to use the original UID's, then the
>> first thing that
>> I can think of is to:
>>
>> 1) use useradd to create the new account
>>
>> 2) scp or rsync the original home directory to the new
>> server
>>
>>
On 07/27/2010 09:15 AM, Ron Bergin wrote:
On Jul 26, 5:58 pm, ca...@cajuninc.com ("M.Lewis") wrote:
I'm migrating an old RedHat server to a new Debian server. In migrating
the data there's a problem in that on the RH server the UID starts at
500, on the Debian server the UID starts at 1000. Res
From: M.Lewis
> On 07/27/2010 01:11 AM, Shlomi Fish wrote:
>> On Tuesday 27 Jul 2010 03:58:06 M.Lewis wrote:
>>> I'm migrating an old RedHat server to a new Debian server. In
migrating
>>> the data there's a problem in that on the RH server the UID starts
at
>>> 500, on the Debian server the UID s
On Jul 26, 5:58 pm, ca...@cajuninc.com ("M.Lewis") wrote:
> I'm migrating an old RedHat server to a new Debian server. In migrating
> the data there's a problem in that on the RH server the UID starts at
> 500, on the Debian server the UID starts at 1000. Resulting in something
> like this:
>
> Old
On 07/27/2010 01:11 AM, Shlomi Fish wrote:
On Tuesday 27 Jul 2010 03:58:06 M.Lewis wrote:
I'm migrating an old RedHat server to a new Debian server. In migrating
the data there's a problem in that on the RH server the UID starts at
500, on the Debian server the UID starts at 1000. Resulting in
Hi All!
I need ftps support fo my app, could anyone recomend
good opensource module ?
Thanks
--
If you think of MS-DOS as mono, and Windows as stereo,
then Linux is Dolby Digital and all the music is free...
pgp6a0G6xWgvN.pgp
Description: PGP signature
20 matches
Mail list logo