[EMAIL PROTECTED] wrote:
I am using perl alarm within a script and having an issue. I want to
access a host by first trying rsh and if that fails use ssh. I can
get the command to run with only one of the commands but when I add
both it fails. I must be missing something simple
Here is the i
On Feb 5, 2008 10:36 AM, isaac2004 <[EMAIL PROTECTED]> wrote:
> hello, i am trying to parse an html document for links for output, my
> idea is to grab the URL from a form and send the URL to another file
> that does the actual parse process. i am aware that HTML:Parser has a
> built in for this,
Rob Dixon wrote:
boll wrote:
I'm trying to write a script to remove duplicate e-mail addresses
from a list.
I'd like some help understanding...
1. Why does it remove all but one of the duplicate lines?
2. How can I fix it?
Thanks for any advice,
John
---
#!/usr/bin/
On Feb 5, 2008 10:22 AM, <[EMAIL PROTECTED]> wrote:
> I am using perl alarm within a script and having an issue. I want to
> access a host by first trying rsh and if that fails use ssh. I can
> get the command to run with only one of the commands but when I add
> both it fails. I must be missin
I am using perl alarm within a script and having an issue. I want to
access a host by first trying rsh and if that fails use ssh. I can
get the command to run with only one of the commands but when I add
both it fails. I must be missing something simple
Here is the info:
Part of script
R (Chandra) Chandrasekhar wrote:
I am trying to change occurrences of & into &.
Are you sure that's what you want to do? In an HTML context, it's more
common to do that only when & is not already the beginning of a
character entity, such as '&' or '"' or '<' etc.
s/&(?!(?:[a-z]+|#[0-9]+
hello, i am trying to parse an html document for links for output, my
idea is to grab the URL from a form and send the URL to another file
that does the actual parse process. i am aware that HTML:Parser has a
built in for this, but i want to learn regex better. my plan after i
get the file is to pu
May be this helps
perl -lne "print if ++$D{$_} == 1" address.txt
regards
2008/2/5, Rob Dixon <[EMAIL PROTECTED]>:
>
> boll wrote:
> > I'm trying to write a script to remove duplicate e-mail addresses from a
> > list.
> > I'd like some help understanding...
> > 1. Why does it remove all but on
It says you should use the experimental method:
> The experimental version of WWW::Mechanize available at
> http://www-mechanize.googlecode.com/svn/branches/plugins/
D.
On Fri, 2008-02-01 at 17:04 +0800, J. Peng wrote:
> I found this module on cpan:
>
> http://search.cpan.org/~sprout/WWW-Mecha
boll wrote:
I'm trying to write a script to remove duplicate e-mail addresses from a
list.
I'd like some help understanding...
1. Why does it remove all but one of the duplicate lines?
2. How can I fix it?
Thanks for any advice,
John
---
#!/usr/bin/perl
use warnings;
R (Chandra) Chandrasekhar wrote:
Dear Folks,
This is a question about s///sg across lines from a file slurped in file
mode.
I am trying to change occurrences of & into &. As a minimal example,
I used the contrived file below where single- and multi-line records are
delimited by <...>. The o
R (Chandra) Chandrasekhar wrote:
Dear Folks,
Hello,
This is a question about s///sg across lines from a file slurped in file
mode.
I am trying to change occurrences of & into &. As a minimal example,
I used the contrived file below where single- and multi-line records are
delimited by <..
On Feb 5, 2008 1:18 AM, boll <[EMAIL PROTECTED]> wrote:
> I'm trying to write a script to remove duplicate e-mail addresses from a
> list.
> I'd like some help understanding...
> 1. Why does it remove all but one of the duplicate lines?
snip
Because that is what the code says to do. It says to pr
Dear Folks,
This is a question about s///sg across lines from a file slurped in file mode.
I am trying to change occurrences of & into &. As a minimal example, I used
the contrived file below where single- and multi-line records are delimited by
<...>. The only real-world text is a hyperlink f
---
#!/usr/bin/perl
use warnings;
use strict;
open ALLNAMES, "emails.txt" or die "File: infile failed to open: $!\n";
my @allnames = ;
chomp @allnames ; # I don't know why, but seems you need this
my %seen = ();
my @unique = grep { ! $seen{ $_ }++ } @allnames;
pr
On Feb 4, 2008 10:05 PM, <[EMAIL PROTECTED]> wrote:
> Hi
>
> i am not able to declare hases
>
> first i tried this
>
> *
> use strict
> my %familyname;
> $familyname{"mark"}="antony";
>
> and i get an error "Global symbol
I'm trying to write a script to remove duplicate e-mail addresses from a
list.
I'd like some help understanding...
1. Why does it remove all but one of the duplicate lines?
2. How can I fix it?
Thanks for any advice,
John
---
#!/usr/bin/perl
use warnings;
use strict;
Hi
i am not able to declare hases
first i tried this
*
use strict
my %familyname;
$familyname{"mark"}="antony";
and i get an error "Global symbol "%familyname" requires explicit
package name"
next i tried
*
18 matches
Mail list logo