[8188] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1806 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Feb 4 12:09:42 1998

Date: Wed, 4 Feb 98 09:00:29 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 4 Feb 1998     Volume: 8 Number: 1806

Today's topics:
        Advice needed. <nospam_sloscialo@chubb.com_nospam>
        Anyone have perl5.004_03 working with AIX-4.2.1 ? (Mark G. Thomas)
    Re: Book review wanted <Jacqui.Caren@ig.co.uk>
    Re: can variables be generated on the fly (Mike Stok)
    Re: can variables be generated on the fly (Andrew M. Langmead)
    Re: can variables be generated on the fly (Andrew M. Langmead)
    Re: Debuggin w/o shell <pmone@drew.edu>
    Re: Debuggin w/o shell (Andrew M. Langmead)
    Re: Don't use signal handlers (was Re: Child processes) (Andrew M. Langmead)
    Re: Don't use signal handlers (was Re: Child processes) (Abigail)
        Generic Config-file maintenance (Philip Freed)
        help to INSTALL <scarpa@mall.it>
    Re: Help Wanted: Parsing data from oddly formatted file (Andrew M. Langmead)
        Help! 255-char URL limit passing form values to cgi <eccles@astral.magic.ca>
    Re: Help! <Jacqui.Caren@ig.co.uk>
    Re: How to get at stuff piped into Perl? (Repost) <kairys@mi.sl.com>
        I am female, blonde and stupid! <RIHPowell@rl.ac.uk>
    Re: I am female, blonde and stupid! <joneil@cks.ssd.k12.wa.us>
    Re: I am female, blonde and stupid! <rootbeer@teleport.com>
    Re: Inverse of a regex <rootbeer@teleport.com>
    Re: Inverse of a regex <rootbeer@teleport.com>
    Re: Is Perl 5 year 2000 compliant? (Abigail)
    Re: KERMIT (Matthew H. Gerlach)
    Re: Need help with editing @INC (Andrew M. Langmead)
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 4 Feb 1998 10:28:58 -0500
From: "Sergio Loscialo" <nospam_sloscialo@chubb.com_nospam>
Subject: Advice needed.
Message-Id: <6ba1lr$ln1@sidney.chubb.com>

I am looking for advice on a date/time module.  Which one
would best suit my purposes to simply check if the date
entered is a valid date.  I don't want users to simply key in
anything...but I want to accept things like "1/1/98", "1/1/1998"
or "01/01/98" or even "Jan. 1, 1998".  I will also need to compare
that date with the system date to determine the number
of days different.

I found a few modules on the web, but want to know which
one would be the best.
----
Sergio Loscialo
Chubb Computer Services
http://ccs.chubb.com





------------------------------

Date: 4 Feb 1998 15:51:28 GMT
From: mark@misty.com (Mark G. Thomas)
Subject: Anyone have perl5.004_03 working with AIX-4.2.1 ?
Message-Id: <slrn6dh3k0.g4l.mark@marksys.misty.com>

Has anyone successfully compiled perl5.004_03 or perl5.004_04
under AIX-4.2.1, such that all the tests pass?

I'm getting really frustrated here.

perl5.004_03:
Failed Test  Status Wstat Total Fail  Failed  List of failed
------------------------------------------------------------------------------
lib/dirhand.t                 5    3  60.00%  2-4
lib/filefind.t                1    1 100.00%  1
lib/findbin.t                 1    1 100.00%  1
op/readdir.t                  3    2  66.67%  2-3
Failed 4/152 test scripts, 97.37% okay. 7/4567 subtests failed, 99.85% okay.



-- 
Mark Thomas (Mark@Misty.com)


------------------------------

Date: Wed, 4 Feb 1998 13:47:42 GMT
From: Jacqui Caren <Jacqui.Caren@ig.co.uk>
Subject: Re: Book review wanted
Message-Id: <EnuwzJ.Jo1@ig.co.uk>

In article <54iurch8gi.fsf@gunnar.aladdin.net>,
Piers Cawley  <pdcawley@bofh.org.uk> wrote:
>Mon, 19 Jan 1998 01:37:00 -0500 comdog@computerdog.com
 (brian d foy) comp.lang.perl.misc
>> In article <34C2C63E.71029C2B@mail.uca.edu>,
 Cameron Dorey <camerond@mail.uca.edu> posted:
>> 
>> >Save the $20, spend it on books from O'Reilly (no, I don't work for
>> >them, but I would be glad to accept a free copy of a title for the
>> >unsolicited plug - the ones I have are all very good).
>> 
>> O'Reilly would quickly go out of business if they gave a free book
>> per unsolicited plugs :)
>
>Heh. I got one once upon a long time ago. I don't think they bother
>any more though. 

I think if you are mentioned or contribute in some manner many houses
give out a gratis copy - at least someone here keeps getting perl books
from publishers on a periodic basis...

[1] perhaps its time to visibly contribute something to the PRP :-)

Jacqui

[1] - this is a joke, for anyone who finds themselves humour impaired...
-- 
Email: Jacqui.Caren@ig.co.uk  http://www.ig.co.uk/
Fax  : +44 1483 419 419       http://www.perlclinic.com/
Phone: +44 1483 424 424       http://www.perl.co.uk/
Paul Ingram Group Ltd,140A High Street,Godalming GU7 1AB United Kingdom



------------------------------

Date: 4 Feb 1998 10:52:57 -0500
From: mike@stok.co.uk (Mike Stok)
Subject: Re: can variables be generated on the fly
Message-Id: <6ba2sp$192$1@stok.co.uk>

In article <6b9a65$neh$1@duende.compusol.com.au>,
Brendan O'Dea <bod@compusol.com.au> wrote:

>You use:
>
>    $ref = eval "\\\$$input";
>
>instead, which works even if $input contains the name of a lexical (my)
>variable.

Just be aware that $input might contain something like q{foo; system "csh
-c 'rm -rf ~'"} (untested...) which might do a little too much for comfort
when fed to eval.  The taint checking flag (-T) can help you find places
where user supplied data is not checked before it's used.

Mike
-- 
mike@stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       |   PGP fingerprint FE 56 4D 7D 42 1A 4A 9C
http://www.tiac.net/users/stok/    |                   65 F3 3F 1D 27 22 B7 41
stok@colltech.com                  |            Collective Technologies (work)


------------------------------

Date: Wed, 4 Feb 1998 15:59:49 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: can variables be generated on the fly
Message-Id: <Env33p.3z6@world.std.com>

John Porter <jdporter@min.net> writes:

>Andrew M. Langmead wrote:
>> But on the other hand, I'm not sure if I'd want a syntax error in the
>> input to call any arbitrary subroutine of my program as in:
>> 
>>      &{shift @ARGV};

>Yahbut, your hash mapping at least restricts the possible calls
>to those you allow.

Exactly the point I was trying to make. The hash mapping of names to
subs has some advantages.

1. It restricts the subs that can be called from user input to a
subset of all the subs in your program.

2. It documents the subs that are expected to be called.

3. You don't need to name your subs the same names as the input
tokens. (Or name them at all if you use anonymous sub ref operator.)

With the only disadvantage being that the programmer has to make the
effort to keep the mapping up to date and consistant.

-- 
Andrew Langmead


------------------------------

Date: Wed, 4 Feb 1998 16:05:58 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: can variables be generated on the fly
Message-Id: <Env3Dz.9K3@world.std.com>

Cameron Kaiser <cdkaiser@delete.these.four.words.concentric.net> writes:

>aml@world.std.com (Andrew M. Langmead) writes:

>>>Why? There's nothing in the New Testament aka Programming Perl that calls
>>>symbolic references depreciated.

>>No, there is just text that discourages their use.

>I already found it after Tom C. chastised me. :-)
>I'm just a depreciated guy, I guess.

Depricated implies that they were once, but no longer, a prefered
method. Symbolic references were discouraged from the start. Roughly
"They're here if you need them, but avoid them."

By the way from you first comment, I can only wonder. Can you find a
section of "Programming Perl" that talks about symbolic references in
anything but a discouraging manner?
-- 
Andrew Langmead


------------------------------

Date: Wed, 04 Feb 1998 10:43:18 -0500
From: "P. Mone" <pmone@drew.edu>
Subject: Re: Debuggin w/o shell
Message-Id: <6ba2d1$72p@bgtnsc02.worldnet.att.net>

root wrote:
> 
> 
> Have a second script execute the first one and redirect stderr to stdout
> see what the web server ignores in reporting an error.
> 
> If you call this from the web:
> 
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> print "<PRE>";
> print `./test.cgi 2>&1`;
> 
> It then calls this script:
> 
> #!/usr/bin/perl
> print "Hello"
> print "End";
> 
> The output should be something like this:
> 
> syntax error in file ./test.cgi at line 4, next token "print "
> Execution of ./test.cgi aborted due to compilation errors.
> 
> Of course, you could always move to a provider who provides shell access :)
> 
> Phil Hartfield
> System Administration
> Internet Direct, Inc (soon to be part of Mindspring Enterprises, Inc.)
> Home of the GoSite Server  Our GoSite Reg and Pro include GoShell
> which allow execution of perl and bash scripts, editing, etc.  For problems
> with libraries and modules, I would recommend the method above, since the
> paths and binaries differ between GoShell and Web server.
> 
   Ok, thats a good idea I think, I'll give it a try.  And to some of
you, you should be a bit more easy going...Don't take jokes personally,
I'm sure all of you are very very democratic and equalitarian, and I'm
sure you treat all of your brothers and sisters on our fine Earth with
equal prejeduce.


------------------------------

Date: Wed, 4 Feb 1998 16:37:48 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Debuggin w/o shell
Message-Id: <Env4v1.Dz4@world.std.com>

Paul Mone <pjmone@symbioticinc.com> writes:

> I am getting the vaguest of the vague error messages in return
>for my hard work...one of the latest is: 
>CGIwrap Error: System Error: execv() failed

>Error: No such file or directory (2)

>but this is nonsense...there is such file or directory.  Basically, I
>want to find out more specific information about whats gone
>wrong...where did it reach this error, which file is it trying to
>access?  

Unfortunately, your http server has not started running your script.
The perl interpreter has not started. This means that the problem is
not a perl problem. Maybe if you checked in a newsgroup where people
talked about http servers, you'd have an audience with people more
experienced with the CGIWrap program.

Once you manage to get your script running, any errors are either CGI
problems (Either the input isn't what you expect, or the output
doesn't have the correct CGI headers orisn't valid HTML) or perl
problems. (You are getting the input you expect, but your script isn't
doing what you think it should be doing with it.) Perl problems are
welcome here.

> Why the hell does my Web-hosting service not give me telnet
>access to my "virtual" server? 

Do they have tech support at least? If their server isn't running your
script, I'd think they should spend some time investigating the
problem. Won't you be annoyed if it is something in their
configuration. (Actually, I'd probably be glad if they did. If you get
mad at them, then you'll probably forget about being mad at me for
giving you non-answers.)

-- 
Andrew Langmead


------------------------------

Date: Wed, 4 Feb 1998 15:36:56 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Don't use signal handlers (was Re: Child processes)
Message-Id: <Env21L.7H8@world.std.com>

abigail@fnx.com (Abigail) writes:

>If the answer is that you'd have to write C to make Perl programs
>work, I might as well stop using Perl.

>I started using Perl because I hate writing in C.

But the amount of C that you would have to write to make an XSUB that
handled signals would be farily small compared to the amount of perl
that you would have to write. (For a program of moderate complexity.)

Hey when I'm writing in C I occationally need to write some ASM code?
Whats the matter with mixed language programming? Writing at the level
required for the task at hand?

-- 
Andrew Langmead


------------------------------

Date: 4 Feb 1998 16:43:31 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Don't use signal handlers (was Re: Child processes)
Message-Id: <6ba5rj$b4v$1@client3.news.psi.net>

Andrew M. Langmead (aml@world.std.com) wrote on 1618 September 1993 in
<URL: news:Env21L.7H8@world.std.com>:
++ abigail@fnx.com (Abigail) writes:
++ 
++ >If the answer is that you'd have to write C to make Perl programs
++ >work, I might as well stop using Perl.
++ 
++ >I started using Perl because I hate writing in C.
++ 
++ But the amount of C that you would have to write to make an XSUB that
++ handled signals would be farily small compared to the amount of perl
++ that you would have to write. (For a program of moderate complexity.)
++ 
++ Hey when I'm writing in C I occationally need to write some ASM code?
++ Whats the matter with mixed language programming? Writing at the level
++ required for the task at hand?

There's nothing wrong with writing with mixed languages.

But I don't want to write in C. The choice wouldn't be
(Perl + C) or (Language X + C) but (Perl + C) or (Language X).



Abigail
-- 
perl -wle 'print "Prime" if (0 x shift) !~ m 0^\0?$|^(\0\0+?)\1+$0'


------------------------------

Date: Wed, 04 Feb 1998 15:57:52 GMT
From: phil@freed.com (Philip Freed)
Subject: Generic Config-file maintenance
Message-Id: <34d88660.7441302@newsfeed1.cybertours.com>

I'd like to maintain a number of config files to be used by various
Perl utilities.  Before I start writing code, I thought I'd find out

1)  If someone has done this already.
2)  If someone has done something even better that I haven't thought
of.
3)  If anyone has ideas or suggestions.
4)  If someone has code that I might use - either in the interim
(until I write this module), or as a starting point.

My _current_ design involves a pair of ASCII files.
The primary config file has entries of the form

{type=modem 
 vendor=USR
 name=modem1
 lines=16             # 16 modem lines
 login=secret   password=veryscret   # multiple entries per line
 host = isp-m1.mydomain.com
 comment = "Values with spaces should be in quotes"
}

The second file would contain a list of valid keywords and values, and
would be less free-form.  The primary purpose of this file is to
prevent typos, but some rules might be built into this file as well.

An example:

type
   modem
   router
vendor
   USR
   Livingston
   Cisco
host  *
login  *
comment  m*

Note the flags that occur after host, login and comment.  The asterisk
means that any value is acceptable for this key.  The 'm' means that
this key may occur multiple times.

Ultimately, a rules file might be added.  An example of a rule might
be
   If the type is a router, then interfaceCount is a required key
or
  If the type = modem, then only USR and Livingston are valid vendors

I haven't thought this all through completely; it may turn out to be
much simpler to have more config files instead of fancier rules.  For
instance, modems and routers could be stored separately, and the first
line of the config file might specify the "dictionary" to use.  This
would eliminate the second rule, and the first rule could be
represented by simply adding an "R" flag to the interfaceCount line in
the router dictionary file.

I'll stop here and wait for feedback....  Thanks.

--phil   <phil@freed.com>


------------------------------

Date: Wed, 04 Feb 1998 16:36:21 +0100
From: Daniele Scarpa <scarpa@mall.it>
Subject: help to INSTALL
Message-Id: <34D88AF4.C9CBDDD5@mall.it>

I'm installing Perl 5.004.
I must install it with library -32 because then I want to install DBI
and DBD in o.s. Irix 6.4 that asks cc 32 and not -n32.
I did:

# sh Configure
System answers me :
 ...
Would you like to see the instructions? [n]

Locating common programs...
awk is in /usr/bin/awk.
cat is in /sbin/cat.
comm is in /usr/bin/comm.
cp is in /sbin/cp.
echo is in /sbin/echo.
expr is in /sbin/expr.
find is in /sbin/find.
grep is in /sbin/grep.
ls is in /sbin/ls.
mkdir is in /sbin/mkdir.
rm is in /sbin/rm.
sed is in /sbin/sed.
sort is in /usr/bin/sort.
touch is in /sbin/touch.
tr is in /usr/bin/tr.
uniq is in /usr/bin/uniq.

Don't worry if any of the following aren't found...
I don't see Mcc out there, offhand.
I don't see byacc out there, either.
cpp is in /usr/lib/cpp.
csh is in /sbin/csh.
date is in /sbin/date.
egrep is in /usr/bin/egrep.
gzip is in /usr/sbin/gzip.
I don't see less out there, either.
line is in /usr/bin/line.
ln is in /sbin/ln.
more is in /usr/bsd/more.
I don't see nroff out there, either.
perl is in /usr/sbin/perl.
pg is in /usr/bin/pg.
sendmail is in /usr/lib/sendmail.
test is in /sbin/test.
uname is in /sbin/uname.
I don't see zip out there, either.
Using the test built into your sh.
 ...
Which of these apply, if any? [irix_6]

Operating system name? [irix]

Operating system version? [6.4]

What is your architecture name [IP27-irix]
 ...
Installati/usr/local/perl doesn't exist.  Use that name anyway? [n]
 irectory
Installation prefix to use? (~name ok) [/usr/local]
 ...
Pathname where the private library files will reside? (~name ok)
[/usr/local/lib/perl5]

Getting the current patchlevel...
(You have perl5  5.0  patchlevel 4  subversion 4 .)
 ...
Where do you want to put the public architecture-dependent libraries?
(~name ok)
[/usr/local/lib/perl5/IP27-irix/5.00404]
 ...
Binary compatibility with Perl 5.003? [y]
 ...
Hmm...  Looks kind of like a BSD system, but we'll see...
 ...
Other username to test security of setuid scripts with? [none]
I'll assume setuid scripts are *not* secure.
Does your kernel have *secure* setuid scripts? [n]
 ...
Do you want to do setuid/setgid emulation? [n]
 ...
Pathname for the site-specific library files? (~name ok)
[/usr/local/lib/perl5/site_perl]
 ...
Pathname for the site-specific architecture-dependent library files?
(~name ok)
[/usr/local/lib/perl5/site_perl/IP27-irix]
 ...
Directory for your old 5.001 architecture-dependent libraries? (~name
ok)
[none]

Pathname where the public executables will reside? (~name ok)
[/usr/local/bin]
 ...
Which memory models are supported? [none]

********************************************************

Use which C compiler? [cc -n32] cc -32

********************************************************

Checking for GNU cc in disguise and/or its version number...
You are not using GNU cc.

Hmm...  Looks like a MIPS system...
and you're compiling with the System V compiler and libraries.

Where are the include files you want to use? [/usr/include]

Some systems have incompatible or broken versions of libraries.  Among
the directories listed in the question below, please remove any you
know not to be holding relevant libraries, and add any that are needed.
Say "none" for none.

Directories to use for library searches? [/usr/lib32 /lib32 /lib
/usr/lib]

On some systems, shared libraries may be available.  Answer 'none' if
you want to suppress searching of shared libraries for the remaining
of this configuration.

What is the file extension used for shared libraries? [so]

Checking for optional libraries...
No -lsfio.
No -lnet.
No -linet.
No -lnm.
No -lndbm.
No -lgdbm.
No -ldbm.
No -ldb.
Found -lmalloc (shared).
No -ldld.
No -lld.
Found -lm (shared).
Found -lc (shared).
No -lcposix.
No -lposix.
No -lndir.
No -ldir.
No -lucb.
No -lBSD.
No -lx.

Some versions of Unix support shared libraries, which make executables
smaller
but make load time slightly longer.

On some systems, mostly System V Release 3's, the shared library is
included
by putting the option "-lc_s" as the last thing on the cc command line
when
linking.  Other systems use shared libraries by default.  There may be
other
libraries needed to compile perl5 on your machine as well.  If your
system
needs the "-lc_s" option, include it here.  Include any other special
libraries
here as well.  Say "none" for none.

Any additional libraries? [-lmalloc -lm -lc]

Now, how can we feed standard input to your C preprocessor...
Maybe "cc -32 -E" will work...
Nope...maybe "cc -32 -E -" will work...
Nope...maybe "cc -32 -P" will work...
Nope...maybe "cc -32 -P -" will work...
No such luck, maybe "/usr/lib/cpp" will work...
It works!
Perhaps can we force cc -32 -E using a wrapper...
Yup, we can.

Some C compilers have problems with their optimizers.  By default, perl5

compiles with the -O flag to use the optimizer.  Alternately, you might
want
to use the symbolic debugger, which uses the -g flag (on traditional
Unix
systems).  Either flag can be specified here.  To use neither flag,
specify
the word "none".

What optimizer/debugger flag should be used? [-O3] nome

Your C compiler may want other flags.  For this question you should
include
-I/whatever and -DWHATEVER flags and any other flags used by the C
compiler,
but you should NOT include libraries or ld flags like -lwhatever.  If
you
want perl5 to honor its debug switch, you should include -DDEBUGGING
here.
Your C compiler might also need additional flags, such as
-D_POSIX_SOURCE,
-DHIDEMYMALLOC or -DCRIPPLED_CC.

To use no flags, specify the word "none".

Any additional cc flags?
[-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0
-DLANGUAGE_C]

Let me guess what the preprocessor flags are...
They appear to be: -D_BSD_TYPES -D_BSD_TIME -woff -OPT:Olimit=0
-DLANGUAGE_C

Your C linker may need flags.  For this question you should
include -L/whatever and any other flags used by the C linker, but you
should NOT include libraries like -lwhatever.

Make sure you include the appropriate -L/path flags if your C linker
does not normally search all of the directories you specified above,
namely
        /usr/lib32 /lib32 /lib /usr/lib
To use no flags, specify the word "none".

Any additional ld flags (NOT including libraries)?
[ -L/usr/local/lib -L/usr/lib32 -L/lib32]

Checking your choice of C compiler, libs, and flags for coherency...
I've tried to compile and run a simple program with:

        cc -32 nome -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184
-OPT:Olimit=0 -DLANGUAGE_C -L/usr/local/lib -L/usr/lib32 -L/lib32 -o try

try.c -lmalloc -lm -lc
        ./try

and I got the following output:

cc: Warning: -OPT options are ignored
ld: FATAL 113: cannot link new 32-bit object without -n32:
/usr/lib32/crt1.o.
I can't compile the test program.
(The supplied flags might be incorrect with this C compiler.)

You have a BIG problem.  Shall I abort Configure (and explain the
problem)
[y]

--------
 I try to change several input, but nothing.
What can I do ?
Help me !!!!!!!!!!!!
Thanks
daniele





------------------------------

Date: Wed, 4 Feb 1998 16:20:33 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Help Wanted: Parsing data from oddly formatted files
Message-Id: <Env429.M9M@world.std.com>

riddler@atmnet.net (Terry Bunch) writes:

>I have around 300 small ascii files that I need to parse some data out of
>and I am not quite sure how to go about this. The files do not all
>contain the same fields, but they need to populate the same html
>template. The other problem I have is that the field names and data
>fields are on seperate lines with a blank line seperating them.

This is the what the paragraph mode feature of the record separator
variable is for. See the entry for $/ in the perlvar man page for details.


{ 
  local($/) = ''; # read a paragraph at a time.
  while(<>) {
    my ($field,$data) = split /\n/,$_,1; # separate field from data at 1st \n
    $hash{$field} = $data;
  }
}
-- 
Andrew Langmead


------------------------------

Date: Wed, 04 Feb 1998 11:51:11 +0000
From: James Munroe and Tricia O'Neill <eccles@astral.magic.ca>
Subject: Help! 255-char URL limit passing form values to cgi
Message-Id: <34D8562F.4F59@astral.magic.ca>

When sending the contents of an HTML form's textarea to a Perl cgi, or a 
large number of form fields with their associated values to a Perl cgi, 
anything after the first 255 characters gets truncated, because Netscape's 
URL line is limited to that size. Is there any other way to communicate 
form field values from the browser to a cgi, in such a way that the 
_complete_ string of form names and values is preserved?

Please email your reply to eccles@astral.magic.ca (preferred) or post a 
reply in this newsgroup. My need is dire, and I would be grateful for any 
assistance.

Sincerely,

James Munroe


------------------------------

Date: Wed, 4 Feb 1998 16:00:39 GMT
From: Jacqui Caren <Jacqui.Caren@ig.co.uk>
Subject: Re: Help!
Message-Id: <Env353.L0C@ig.co.uk>

In article <6abr9m$ljf@bgtnsc03.worldnet.att.net>, Sherrie <sh@rdwa.com> wrote:
>I know nothing...yes, nothing about Perl.  My company is signing up with a
>stock market data service that will upload, every 15 minutes, a fixed with,
>pipe-delimited text file with one company or quote information per line.
>
>We have roughly 30 or so previously designed 'holdings' pages...a different
>company on each page.  My job is to figure out how to take a single quote
>from the uploaded text file and display it within a particular area of each
>page.

>If anyone can help me...please...

Your choices are
	1) learn perl and DIY
	2) pay someone to do it right
	3) find something free/sharewware to do the job. (and possibly
	pay to get it working)

We and many others are capable of doing this.
Of course, better requirments would help as this has been done so
many different ways.

If you and you company know nothing about perl then why use perl
to do this? Do you want to learn about perl?

My advise is to pay someone to do it for you - get it checked
in the comp.infosystems.authoring.cgi and/or .html groups
and learn from the experience.

Jacqui

p.s. The CPAN archives provide a vast amount of software that can make
this task much simpler. Anyone who writes this in perl without using
the good CPAN modules is wasting their time and your money.

-- 
Email: Jacqui.Caren@ig.co.uk  http://www.ig.co.uk/
Fax  : +44 1483 419 419       http://www.perlclinic.com/
Phone: +44 1483 424 424       http://www.perl.co.uk/
Paul Ingram Group Ltd,140A High Street,Godalming GU7 1AB United Kingdom



------------------------------

Date: Tue, 3 Feb 1998 10:38:29 -0500
From: "Michael Kairys" <kairys@mi.sl.com>
Subject: Re: How to get at stuff piped into Perl? (Repost)
Message-Id: <34d74681.0@news.ic.net>

Re. previous...

Thanks, guys. That's what I thought, but...

Turns out I was flummoxed by trying to use the WinNT file association for
 .pl.
That is, given myscript.pl containing "@stuff = <STDIN>; print @stuff;" and
trying
"grep -l foo * | myscript.pl", I got nothing (although myscript executed
correctly),
but trying "grep -l foo * | perl myscript.pl" worked. Of course once I
realized that I
ran pl2bat on myscript.pl, and "grep -l foo * | myscript" worked.

Thanks for the support!




------------------------------

Date: Wed, 04 Feb 1998 12:48:51 +0000
From: Rosemary Powell <RIHPowell@rl.ac.uk>
Subject: I am female, blonde and stupid!
Message-Id: <34D863B3.5BEA@rl.ac.uk>

Jeffrey Drumm wrote

On Tue, 03 Feb 1998 22:26:18 GMT, bart.mediamind@tornado.be (Bart
Lateur)
wrote:

>Kati Gaebler <dont@mailmehere.com> wrote:
>
>>Subject: I am female, blonde and stupid!
>
>If that is your opinion about yourself, I'm not in the least inclined to
>help you.
>
>       Bart.

>Hmm. Maybe she should've stayed a virgin[1]. She got plenty of help then >. . and it wasn't even a Perl question.
>
>[1] "I am still a virgin" thread started by katigaebler@hotmail.com . . >1/18/1997 or thereabouts.

>Jeffrey R. Drumm

WELL.. I am female, fat, middle aged and stupid...
but I get MY questions answered on clpm. 
What am I doing wrong??

Rosemary
:-)


------------------------------

Date: Wed, 04 Feb 1998 08:16:21 -0800
From: Jerome O'Neil <joneil@cks.ssd.k12.wa.us>
Subject: Re: I am female, blonde and stupid!
Message-Id: <34D89454.33897989@cks.ssd.k12.wa.us>

Martien Verbruggen wrote:

> In article <6b8m2l$br6$1@client2.news.psi.net>,
>         abigail@fnx.com (Abigail) writes:
> > Joseph N. Hall (joseph@5sigma.com) wrote on 1618 September 1993 in
> > <URL: news:34D7CFF2.3253BB26@5sigma.com>:
> > ++ I am male, brunette, and that is a lousy subject line.
> >
> > With curls?
>
> A subject line with curls?

It does my heart good to see that c.l.p.m. is an equal opportunity
newbie-bashing newsgroup!  Where is that automatic "flame" thing Tom C
has....
Jerome



------------------------------

Date: Wed, 4 Feb 1998 08:28:38 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Kati Gaebler <dont@mailmehere.com>
Subject: Re: I am female, blonde and stupid!
Message-Id: <Pine.GSO.3.96.980204082015.6372C-100000@user1.teleport.com>

On Tue, 3 Feb 1998, Kati Gaebler wrote:

> Subject: I am female, blonde and stupid!

Please check out this helpful information on choosing good subject
lines. It will be a big help to you in making it more likely that your
requests will be answered.

    http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post

Thank you.

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 4 Feb 1998 07:01:04 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Glenn West <westxga@ptsc.slg.eds.com>
Subject: Re: Inverse of a regex
Message-Id: <Pine.GSO.3.96.980204065946.6372A-100000@user1.teleport.com>

On Tue, 3 Feb 1998, Glenn West wrote:

> $line =~ s/.*(<.*>).*/$1/;

My friends at the valid address below don't think that's very good. :-) 

    "Fred>&<Barney" <"fred>&<barney"@redcat.com>

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: Wed, 4 Feb 1998 08:16:28 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Kevin Scott <scottj@mthcsc.wfu.edu>
Subject: Re: Inverse of a regex
Message-Id: <Pine.GSO.3.96.980204081458.6372B-100000@user1.teleport.com>

On Tue, 3 Feb 1998, Kevin Scott wrote:

> 	$line =~ s/^.*?(\<.*\>).*$/$1/;

Of course, that won't work very well on some valid addresses. 

    "Fred>&<Barney" <"fred>&<barney"@redcat.com>

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



------------------------------

Date: 4 Feb 1998 16:48:28 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Is Perl 5 year 2000 compliant?
Message-Id: <6ba64s$b4v$2@client3.news.psi.net>

David Lee Lambert (lamber45@EGR.msu.edu) wrote on 1618 September 1993 in
<URL: news:Pine.GSO.3.96.980204083422.25250D-100000@area51>:
++ On Wed, 4 Feb 1998, Matthew Rock wrote:
++ 
++ > Does anyone know of any problems with Perl 5 and Y2K?
++ 
++ Perl itself is date-independent.  RTFM, and you'll see that the only way
++ to get a date is with `date`

RTFM yourself, specially the entries called 'time', 'gmtime' and 'localtime'.



Abigail
-- 
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'


------------------------------

Date: Wed, 4 Feb 1998 16:16:11 GMT
From: gerlach@netcom.com (Matthew H. Gerlach)
Subject: Re: KERMIT
Message-Id: <gerlachEnv3uz.BIL@netcom.com>

In article <34D841FB.BD0584A7@husi.ch> Patrick Husi <patrick@husi.ch> writes:
>Does anybody know how I can send a file in my perl script with KERMIT.
>Is there a KERMIT library in perl?
>
>Patrick
>

If you are running on UNIX, I have "talked" to the kermit program from
perl quite a bit.  I do it to control test equipment via a serial port.
There is no reason why you couldn't do the same thing to tell kermit
to send the file in question.  For examples of perl controling
kermit see 
ftp://www.smallplanetbrewery.com/users/coralie/perl_serial_example

Now if you are not on unix, you might have a bit of a problem, mostly
because you are probably running a Witless95 :)  But don't fret.
The kermit program has a very powerful scripting language of its own
built in.  This language can be used on any version of kermit running
on any OS.  You could have your perl script exectute the kermit script.


Matthew H. Gerlach


------------------------------

Date: Wed, 4 Feb 1998 16:45:34 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Need help with editing @INC
Message-Id: <Env57y.L0G@world.std.com>

efflandt@xnet.com (David Efflandt) writes:

>Just one question, does Win32 perl care which way the slashes lean?
>Since I progressed to Linux some time ago, I don't recall exactly how
>to handle DOS backslashes.

MS-DOS (including the version of MS-DOS that Windows 95 is built upon)
and Windows NT system calls treat both forward and backslashes
identically. It is only some of the tools bundled with time (line
COMMAND.COM) that misinterpret forward slashes.

-- 
Andrew Langmead


------------------------------

Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 1806
**************************************

home help back first fref pref prev next nref lref last post