- Original Message -
From: Miriam Hadary <[EMAIL PROTECTED]>
To: Gene Martin <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 7:33 PM
Subject: GET ME OFF
> DEAR EVERYONE,
>
> I HAVE REALLY TRIED TO GET OFF THIS FORUM BUT TO NO AVAIL. I DON'T MEAN TO
> SOUND LIKE T
> >
> > That's too much there...
> >
> > /add_\w+/ and print("Yippie!\n"), last while $_ = each %hash;
> >
> > "scalar each" is underutilized. :)
>
what happened to grep?
print "found it" if grep{$_ =~ /foo/}keys %bar
If find this more readable, allthough Randall's solution is more effic
- Original Message -
From: <[EMAIL PROTECTED]>
To: Jon Acierto <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 12:29 AM
Subject: Re: PERL IS NOT A HIGH LEVEL LANGUAGE
[...]
Instead of only tring to comfort one another among ourselves, with all sorts
of valid arg
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: Jon Acierto <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, August 17, 2001 8:13 PM
Subject: Re: PERL IS NOT A HIGH LEVEL LANGUAGE
>
> This thread is quite curious to me. Perl in most respects is a *highe
- Original Message -
From: KAVANAGH, Michael <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 12:28 PM
Subject: XML::Parser -- Problem with undefined entities in element
attributes
> Hi there,
> I've been bumping my head up against this problem all morning no
- Original Message -
From: Brett W. McCoy <[EMAIL PROTECTED]>
To: Jennifer Pan <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 9:12 PM
Subject: Re: if in a list
[...]
>
> Here's how I would code this:
>
> foreach (@mylist) {
>
> $boolean = ($_ eq 'AF1') ?
- Original Message -
From: Sparkle Williams <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 2:43 PM
Subject: Unix syntax
> I wrote a program running off a Windows NT platform and was trying to
> convert it to a UNIX platform. My problem comes with my syntax. I k
- Original Message -
From: Bob Bondi <[EMAIL PROTECTED]>
To: Beginners-perl <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 11:49 PM
Subject: Snippet to list both directories and files to an array or...?
> I've been trying to use opendir($tempdir,@ARGV[0]) or die "Couldn't open
the
> di
- Original Message -
From: Jie Meng <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 5:02 PM
Subject: A simple question
Dear all,
I plan to write a simple remote connection script, and then "ls" the content
of the current directory, input like
telnet hostname
u
- Original Message -
From: Bob Mangold <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 7:43 PM
Subject: perl / php question
> Hello,
>
> I'm not sure if anyone here can help me with this, but at least some
direction
> in where to to look would be great.
>
> I'm u
- Original Message -
From: Mike Miller <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 6:08 PM
Subject: Module to Parse MIME-encoded Email?
>
> Gurus:
>
> As a learning exercise I'm writing my own web-based POP3 client, and
> wish to be able to handle emails wh
>
> for ($i=0; $b[$i] != undef; $i++)
> {
> print STDOUT $b[$i];
> }
>
> and that seem logical but I was getting complaints such as..
> "Argument "#stopped at 867\n" isn't numeric in ne at ./page57_1.pl line
> 9, chunk 1544."
>
> anyhow hope you can enlighten me as to all this hullaballooo ;-)
- Original Message -
From: Wang, Lanbo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 30, 2001 12:04 AM
Subject: Problem with hash value
> Hi Members,
>
> It seemed that a value was incorrectly retrieved from the hash list in the
> following small Perl script. .
>
> #!
> > my $option = defined $ARGV[0] ? $ARGV[0] : "default";
>
> Didn't we already go through all of this a few hours ago? Randal (of
> course) came up with the most succint solution:
>
> my $option = @ARGV ? shift : ;
>
Sorry for trying to be helpful.
Mailing list arent represented in threads in ou
- Original Message -
From: Evgeny Goldin (aka Genie) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: Brett W. McCoy <[EMAIL PROTECTED]>
Sent: Friday, June 29, 2001 11:34 PM
Subject: Re: Optional Variables
>
> > my $option = $ARGV[0] || 1;
>
> And what if $ARGV[0] equal to 0 ? Ops ..
- Original Message -
From: Jack Lauman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 11:48 PM
Subject: Another Regex Question
> I'm trying to create a CSV file from the text data below. Lines
> containing High and Low Tide data have 9 fields, lines having
>
- Original Message -
From: Jeff Yoak <[EMAIL PROTECTED]>
To: Luinrandir Hernson <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, June 09, 2001 12:10 AM
Subject: Re: if then else
> At 05:35 PM 6/8/01 -0400, Luinrandir Hernson wrote:
> >ok, where did i go wrong now???
>
> '=' is
> -Original Message-
> From: Mark Martin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 10:01
> To: [EMAIL PROTECTED]
> Subject: Substitution Problem
>
>
> Hi,
> I'm taking in a csv file and splitting it. One of the fields(doc) could
> possibly have six spaces which will disrupt
- Original Message -
From: Peter Scott <[EMAIL PROTECTED]>
To: Byron Rendar <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 9:11 PM
Subject: Re: double quotes around a variable
> At 09:50 AM 6/7/01 -0700, Byron Rendar wrote:
> >my $input= ;
> > my $username =
- Original Message -
From: Peter Cornelius <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 2:49 AM
Subject: splitting strings with quoted white space
> I have this script that reads in lines from a configuration file,
processes
> them, and then stores them in
- Original Message -
From: Timothy Kimball <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 9:45 PM
Subject: Re: Fwd: 'use' question
>
> M.W. Koskamp wrote:
>
> : You are missing a semi-colon at the end of line 1
&
- Original Message -
From: Bob Mangold <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 9:28 PM
Subject: Re: Fwd: 'use' question
> ok sorry for the lack of a script before,
>
> here is a little test script i wrote to try to figure out how to use the
> Getopt::S
- Original Message -
From: Hill, Ronald <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 7:07 PM
Subject: problems following a refresh meta tag using LWP and open SSL (2ed
request)
> Hello All,
>
> I am trying to connect to the Wells Fargo online bank using the L
- Original Message -
From: Marcelo E. Magallon <[EMAIL PROTECTED]>
To: M.W. Koskamp <[EMAIL PROTECTED]>
Cc: Brent Buckalew <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 03, 2001 7:58 PM
Subject: Re: probably a simple matter but...
> >>
- Original Message -
From: Paul <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; Perl Discuss <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 8:51 PM
Subject: Re: testing null strings for form field values
>
> --- [EMAIL PROTECTED] wrote:
> > if ( $formdata{view_name} ne "" ) {
> > $vie
- Original Message -
From: Brent Buckalew <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 03, 2001 9:28 AM
Subject: probably a simple matter but...
> Hello all,
>
> I've constructed a perl script which takes number from a large text file
> and prints them as well as manip
- Original Message -
From: Nichole Bialczyk <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 9:30 PM
Subject: append a file to another file
> i understand how to open and create files, but let's say that i want to
> open several files and insert them all into one
- Original Message -
From: Gary Stainburn <[EMAIL PROTECTED]>
To: Perl Beginners <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 1:21 PM
Subject: array inside a hash
> Hi all,
>
> I'm writing a small script to collect info from various system commands
> to produce a small meaningfull r
- Original Message -
From: justin todd <[EMAIL PROTECTED]>
To: Beginners (E-mail) <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 10:18 AM
Subject: DB
> Hi.
>
(...)
In short: Your webserver doesn't connect to your DB server.
Basically this had nothing to do with the NT Domain trusting an
- Original Message -
From: Yacketta,Ronald J <[EMAIL PROTECTED]>
To: Beginners (E-mail) <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 10:52 PM
Subject: mail
> Folks,
>
> I search CPAN and found a good deal of Mail packages, seeing that I am
> frankly new
> which of them would you
- Original Message -
From: Chris Tunnell <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 11:23 PM
Subject: Sendmail
I use a program called activeperl to run perl scripts on my W2k machine.
Does anyone know where the sendmail is located
Yes, on the nearest unix m
> I am trying to send an email to users based on a list of emails that have
> been read into an array. The array contains about 600 records but it
abends
> at around 200.
May i ask what the purpose of that script is?
Maarten.
- Original Message -
From: David H. Adler <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 7:13 PM
Subject: Re: Arrays of hashes?
(...)
> Technically, that's not *literally* possible. But you can have an array
> of *references* to hashes (as assoc. arrays tend
- Original Message -
From: Matt Noel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 7:05 PM
Subject: Sorting a Two Dimensional Array
(...)> I have a simple two-dimensional array, call it @Weights. I think of
the
> first index as being the Row index and the se
- Original Message -
From: Liger-dc <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 10:14 PM
Subject: formatting
> What does the following formatting do?
>
> $line =~ /^; .ot (\d+)/)
It has nothing to do with formatting. Is is a reg exp match statement.
I sugg
- Original Message -
From: Ang Sei Heng <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 7:18 PM
Subject: Oracle Database...
> Hello Everyone,
>
> Recently I did some database connection to Oracle via DBD::Oracle.
>
> I manage to conncec to server, the follow stat
- Original Message -
From: Gross, Stephan <[EMAIL PROTECTED]>
To: 'Beginner Perl' <[EMAIL PROTECTED]>
Sent: Friday, May 11, 2001 5:26 PM
Subject: Regexp Question Again
> I wasn't clear last time. I wrote:
> >I want to match the following:
> >1) the letters "PT"
> >2) a space or nothing
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 7:50 PM
Subject: Very beginner question
>
> if I am trying to just extract "john" for the value $b, why would the
> following script not work. I thought it would take bothIt returns the
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 7:54 PM
Subject: ppm error
> when i use Active Perl on Win98 PPm i get the following error when i try
to use the search command:
>
> ---
> PPM> search
>
> not well-formed at li
- Original Message -
From: Ang Sei Heng <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 1:27 AM
Subject: Need help on Unicode Programming...
> This is what I did:
> -- BEGIN -
> #!/usr/bin/perl -w
>
> use Unicode::Map8;
> use Unicode::S
> I have 2 hashes, %one and %two.
>
> the ($key, $value) of %one is a span of time.
>
> I need to compare this span of time over every $key of %two.
>
> Here's what I have:
>
> while (($key1, $val1) = each (%one)) {
>
> while (($key2, $val2) = each (%two)) {
>
> if (($key2 >= $key1) && ($key2 <
- Original Message -
From: justin todd <[EMAIL PROTECTED]>
To: Beginners (E-mail) <[EMAIL PROTECTED]>
Sent: Monday, May 07, 2001 6:30 PM
Subject: db connect
> Hi Folks
>
> I am running a IIS server and MSSQL7, both on the same machine.
>
> The database server is called JUSTIN. The da
> Here is what I have so far:
>
> open (FILE, ">>file2") || die "cannot open file2\n";
> open (OIDFILE, "file1") || die "cannot open file1\n";
> while () {
> $new_oid = $_;
> while () {
You opened FILE for output here.
besides this is not too efficient, because you read the whole file2 over and
o
- Original Message -
From: justin todd <[EMAIL PROTECTED]>
To: Beginners (E-mail) <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 9:18 AM
Subject: Separate DB
> Hi all.
>
> I am running a IIS webserver and a separate MSSQL database.
>
> Could anyone please tell me what the connection
- Original Message -
From: M.W. Koskamp <[EMAIL PROTECTED]>
To: Me <[EMAIL PROTECTED]>; Christodoulou Demetris
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 10:52 AM
Subject: Re: How to implement Variable variable names?
>
> -
- Original Message -
From: Me <[EMAIL PROTECTED]>
To: Christodoulou Demetris <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 10:26 AM
Subject: Re: How to implement Variable variable names?
> > Hi,
> > I am writing an application where i have to read
> > from a fil
- Original Message -
From: David H. Adler <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 8:46 PM
Subject: Re: String deconstruction?
> On Wed, May 02, 2001 at 11:28:14AM -0700, Ross Larner wrote:
> > Hello. I am attempting to print a string one character at a
print join "\n", split "", "abcdefg";
split will give you a list where "abcdefg" is splitted on nothing.
so it will contain (a,b,c,d,e,f,g).
Join "\n" will join the items in the list with newlines between em.
So it will print:
a
b
c
d
e
f
If you want to reuse the array do this:
my @chars = spli
Programming the perl DBI would be a good book. Also learning perl from
O'reilly is fairly good.
If you get perl from activestate.com you get the perl documentation in html
format. Very good and worth reading.
Try read the different tutorials. I suggest perlsyn, perlop, and perl sub.
Also make a n
- Original Message -
From: Casey West <[EMAIL PROTECTED]>
To: M.W. Koskamp <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; cherukuwada subrahmanyam <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 6:45 PM
Subject: Re: eliminating duplic
- Original Message -
From: Paul <[EMAIL PROTECTED]>
To: cherukuwada subrahmanyam <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 7:08 PM
Subject: Re: eliminating duplicate lines in a file
>
> --- cherukuwada subrahmanyam <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Ia
Read the documentation in IO::Handle and FileHandle
- Original Message -
From: n6tadam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 1:27 PM
Subject: I am a real begginer to perl..
> Dear All,
>
> I wonder if someone could help me. I have been programming
- Original Message -
From: Kevin Meltzer <[EMAIL PROTECTED]>
To: Peter Lemus <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 10:07 PM
Subject: Re: How to create a log file from a perl script
> Hi Peter,
>
> Look at the perlopentut man page:
>
> perldoc perlope
- Original Message -
From: Paul Johnson <[EMAIL PROTECTED]>
To: Sean O'Leary <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 7:07 PM
Subject: Re: missing something obvious
> On Wed, Apr 25, 2001 at 12:47:59PM -0400, Sean O'Leary wrote:
> > split (".", $ARGV[0
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 22, 2001 12:28 AM
Subject: How to send attacments>
How do i send an html file as an attachment using sendmail?
Thanks
Take a look at the MIME::Lite module...
- Original Message -
From: Stout, Joel R <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 10:20 PM
Subject: [beginner] file parsing question
> Sorry so lengthy but here goes:
>
> I am a Perl newbie and trying to parse a file. Depending on the tags in
the
> data
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 6:34 PM
Subject: Complex Regex.
> The Text has numbers in it apparently-1.0 at random but 12 actually not...
> $% 12.3 0.9 .333 33 and -33.909 I need to extract
> u&t(y2335
- Original Message -
From: Paul Johnson <[EMAIL PROTECTED]>
To: David Gilden <[EMAIL PROTECTED]>
Cc: Casey West <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 10:30 PM
Subject: Re: quick PERL question
> >
> > $x = &checkPrice($in{'price'});
> > if ( ($in{'name'} e
- Original Message -
From: David Gilden <[EMAIL PROTECTED]>
To: Casey West <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 9:23 PM
Subject: quick PERL question
> Dear Casey and the list,
> Thanks for your all of your valuable help,
>
> What is $|++ for?
>
> #!/u
- Original Message -
From: David Gilden <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 6:33 PM
Subject: print with => ??
> Hello,
> Sorry to ask this, as I am quite new at this.
> And the online class that I am just now finishing has
> lots of bad code for exam
- Original Message -
From: Pang, Joseph <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 12:30 AM
Subject: Parsing newbie
> Is there any lib/module I could use for data parsing?
>
> I has some data format that the grammar is known (quite simple actually),
> but
- Original Message -
From: David Gilden <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 2:49 AM
Subject: Populating Hashs and checking multi form fields
> # stuff $pwd in to @indata
> open(FILE,$pwfile) || die &dead("Can't find $pwfile. $!");
> @indata = ;
Th
- Original Message -
From: McCormick, Rob E <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 12:08 AM
Subject: renaming files in a directory
> I can print a file listing with this:
>
Try to do the rename in the while loopm cuz it loops over all the files i
63 matches
Mail list logo