[18447] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 615 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Apr 3 03:21:00 2001

Date: Tue, 3 Apr 2001 00:20:43 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <986282442-v10-i615@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Tue, 3 Apr 2001     Volume: 10 Number: 615

Today's topics:
        Sorts on first six columns only <Lance Hoffmeyer <vibrato@deja.com>>
    Re: Sorts on first six columns only (Abigail)
    Re: Sorts on first six columns only (Garry Williams)
    Re: ssi #exec problem (David Efflandt)
        the "camel book" <bones3d@charter.net>
    Re: The best book for Win98??? (Clinton A. Pierce)
    Re: The best book for Win98??? <bowman@montana.com>
    Re: Unlink of just executed file nobull@mail.com
    Re: Unlink of just executed file <snoppy**DELETE**@obel.auc.dk>
    Re: Use Asp over Perl or Php? <bertilow@chello.se>
    Re: what are the new languages? <wayne.keenan@ntlworld.com>
    Re: what are the new languages? <wayne.keenan@ntlworld.com>
    Re: what are the new languages? (Alan Barclay)
    Re: what are the new languages? <todd@designsouth.net>
    Re: what are the new languages? <wayne.keenan@ntlworld.com>
    Re: Whats is the best Perl book to tech "How to use Per (Rob Seegel)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Sun, 01 Apr 2001 10:53:49 -0500
From: "Lance Hoffmeyer" <Lance Hoffmeyer <vibrato@deja.com>>
Subject: Sorts on first six columns only
Message-Id: <k8Ix6.14365$BC6.3850260@e3500-chi1.usenetserver.com>

Can someone explain how one might sort an ASCII file with 3000 columns on 
only the first 6 columns which have a unique ID number?  All the examples
I have seen are simple examples that don't include this sort of sort.



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

Date: Sun, 1 Apr 2001 20:06:32 +0000 (UTC)
From: abigail@foad.org (Abigail)
Subject: Re: Sorts on first six columns only
Message-Id: <slrn9cf2i8.6sa.abigail@tsathoggua.rlyeh.net>

Garry Williams (garry@ifr.zvolve.net) wrote on MMDCCLXX September
MCMXCIII in <URL:news:slrn9cen8s.rqb.garry@zfw.zvolve.net>:
## On Sun, 01 Apr 2001 16:11:18 GMT, John Joseph Trammell
## <trammell@bayazid.hypersloth.invalid> wrote:
## 
## > On Sun, 01 Apr 2001 10:53:49 -0500, Lance Hoffmeyer wrote:
## >> Can someone explain how one might sort an ASCII file with 3000
## >> columns on only the first 6 columns which have a unique ID number?
## > 
## > % cat filename | sort -n
## 
## Setting aside the useless use of cat, how does that answer the
## question?  


It takes a file, it sorts it numerically. How does that *not* answer the
question?



Abigail
-- 
   my $qr =  qr/^.+?(;).+?\1|;Just another Perl Hacker;|;.+$/;
      $qr =~  s/$qr//g;
print $qr, "\n";


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

Date: Sun, 01 Apr 2001 20:24:07 GMT
From: garry@ifr.zvolve.net (Garry Williams)
Subject: Re: Sorts on first six columns only
Message-Id: <slrn9cf3j7.rs9.garry@zfw.zvolve.net>

On Sun, 1 Apr 2001 20:06:32 +0000 (UTC), Abigail <abigail@foad.org> wrote:
> Garry Williams (garry@ifr.zvolve.net) wrote on MMDCCLXX September
> MCMXCIII in <URL:news:slrn9cen8s.rqb.garry@zfw.zvolve.net>:
> ## On Sun, 01 Apr 2001 16:11:18 GMT, John Joseph Trammell
> ## <trammell@bayazid.hypersloth.invalid> wrote:
> ## 
> ## > On Sun, 01 Apr 2001 10:53:49 -0500, Lance Hoffmeyer wrote:
> ## >> Can someone explain how one might sort an ASCII file with 3000
> ## >> columns on only the first 6 columns which have a unique ID number?
> ## > 
> ## > % cat filename | sort -n
> ## 
> ## Setting aside the useless use of cat, how does that answer the
> ## question?  
> 
> It takes a file, it sorts it numerically. How does that *not* answer the
> question?

I guess that depends on what a "column" means to the OP.  

  $ cat > file
  40 256
  1 500
  40 1000
  $ sort -n file
  1 500
  40 1000
  40 256
  $ 

I have to admit that it would work *if* columns were fixed length (and
numbers were right justified).  

-- 
Garry Williams


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

Date: Tue, 3 Apr 2001 05:47:50 +0000 (UTC)
From: efflandt@xnet.com (David Efflandt)
Subject: Re: ssi #exec problem
Message-Id: <slrn9cip0e.mq.efflandt@efflandt.xnet.com>

On Mon, 02 Apr 2001 21:18:58 GMT, Verio News <anim8grl@onebox.com> wrote:
>my stuff:
>-------------------
>activeperl 5.6
>iis5
>2k advanced server
>-------------------
>
>just installed activeperl 5.6 and appears to work. all activeperl example
>scripts work fine.
>
>trying to do an ssi exec <!-- #exec cgi=path/file.cgi --> and cannot get it
>to work.  no errors are thrown.  just is not doing anything.

If you see the above include tag when you "view source" of that page, it
is definitely not a Perl problem.  See the docs for your webserver about
includes.  You may need a different filename extension and maybe there is
not supposed to be a space in front of #exec.

-- 
David Efflandt  efflandt@xnet.com  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/


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

Date: Sun, 01 Apr 2001 03:20:28 -0600
From: James Meade <bones3d@charter.net>
Subject: the "camel book"
Message-Id: <bones3d-BDF259.03202801042001@corp.supernews.com>

Based on how much the "camel book" appears to be praised by nearly the 
entire Perl community, I've decided to buy a copy for myself. I can't 
wait until the thing gets here! :-)

BTW, I'm curious if any of you have read O'Reilly's "Javascript: the 
definitive guide." Is it anything near the quality of the "camel book?"

8==8 Bones 8==8


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

Date: Sun, 01 Apr 2001 20:08:57 GMT
From: clintp@geeksalad.org (Clinton A. Pierce)
Subject: Re: The best book for Win98???
Message-Id: <tVLx6.126113$W05.24351393@news1.rdc1.mi.home.com>

[Posted and mailed]

In article <20010401124023.01186.00001070@ng-df1.aol.com>,
	hed2099@aol.com (HeD2099) writes:
> Hey I'm running Windows 98 on my computer right now and will I still be able to
> create and run scripts using this machine?  If so, which would be the best book
> for me to read?  I have no previous perl experience, I'm just starting out with
> the language.

I'm biased, but Teach Yourself Perl in 24 Hours is very platform neutral 
(i.e. it all works in Win98, Unix, MacOS, etc..), has a CD in the jacket with
a fairly recent Activestate distribtion on it, and is a pretty good 
introduction to Perl.

*ahem*


-- 
    Clinton A. Pierce              Teach Yourself Perl in 24 Hours  *and*
  clintp@geeksalad.org         Perl Developer's Dictionary -- May 2001
"If you rush a Miracle Man,     for details, see http://geeksalad.org     
	you get rotten Miracles." --Miracle Max, The Princess Bride


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

Date: Sun, 1 Apr 2001 11:44:30 -0600
From: "bowman" <bowman@montana.com>
Subject: Re: The best book for Win98???
Message-Id: <oJJx6.375$584.3062@newsfeed.slurp.net>


HeD2099 <hed2099@aol.com> wrote in message
news:20010401124023.01186.00001070@ng-df1.aol.com...
> Hey I'm running Windows 98 on my computer right now and will I still be
able to
> create and run scripts using this machine?

go to www.activestate.com, download the distro and install it. read the
extensive documentation included with it. if that isn't enough, go to the
perl site for a list of books with critiques and recommnedations.





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

Date: 01 Apr 2001 11:22:07 +0100
From: nobull@mail.com
Subject: Re: Unlink of just executed file
Message-Id: <u98zlkhqcw.fsf@wcl-l.bham.ac.uk>

Jesper Petersen <snoppy**DELETE**@obel.auc.dk> writes:

> Subject: Unlink of just executed file

> The other problem I have....

No please, one question per thread (unless of course the questions are
related).

> is how to read the filenames in a directory one at a
> time, so I use the names in a batch file.

opendir()/readdir()

And elsewhere in this thread Jesper Petersen
<snoppy**DELETE**@obel.auc.dk> writes:

> Unfortunately the other problems aren't that
> easy to just look up.

The manual 'perlfunc' has a section 'Perl Functions by Category' and
within that:

      Functions for filehandles, files, or directories
           `-X', `chdir', `chmod', `chown', `chroot', `fcntl',
           `glob', `ioctl', `link', `lstat', `mkdir', `open',
           `opendir', `readlink', `rename', `rmdir', `stat',
           `symlink', `umask', `unlink', `utime'

From that point it should be fairly easy to have guessed that
opendir() sounded hopeful.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: Sun, 01 Apr 2001 17:37:30 +0200
From: Jesper Petersen <snoppy**DELETE**@obel.auc.dk>
Subject: Re: Unlink of just executed file
Message-Id: <qiiect474i2m7u3lnjab11ovhmunaun0br@4ax.com>

>No please, one question per thread (unless of course the questions are
>related).

OK

[cut]

>The manual 'perlfunc' has a section 'Perl Functions by Category' and
>within that:
>
>      Functions for filehandles, files, or directories
>           `-X', `chdir', `chmod', `chown', `chroot', `fcntl',
>           `glob', `ioctl', `link', `lstat', `mkdir', `open',
>           `opendir', `readlink', `rename', `rmdir', `stat',
>           `symlink', `umask', `unlink', `utime'
>
>From that point it should be fairly easy to have guessed that
>opendir() sounded hopeful.

Yes, but yesterday was the first time I even had a look at Perl, and I wasn't
aware of the Perlfunc manual. So thanks for letting me know about it.

Jesper


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

Date: Sun, 01 Apr 2001 12:01:40 GMT
From: "Bertilo Wennergren" <bertilow@chello.se>
Subject: Re: Use Asp over Perl or Php?
Message-Id: <EMEx6.919$ym1.15650@nntp1.chello.se>

Kati:

> Not really knowing 
> anything about ASP I wonder if there are limitations in choosing this 
> technology over Perl or Php, for example, could Asp run on Microsoft 
> servers only?

Normally it't MS servers only.

> Any objective, or non-objective opinions, would be 
> appreciated, to help us make a decision on this topic.

ASP can by quite easy to work with. Some people don't like the
VBScript syntax, but I had no problems going from Perl and JavaScript
to VBScript. If you really can't stand to work with VBScript or
Javascript in your ASP code, you could also use Perl, or rather
something called PerlScript in ASP. So you could go both ways.

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                        <bertilow@chello.se>
#####################################################################




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

Date: Sun, 01 Apr 2001 19:28:33 +0100
From: "wayne.keenan" <wayne.keenan@ntlworld.com>
Subject: Re: what are the new languages?
Message-Id: <3AC77351.F3DB6930@ntlworld.com>

I bed to differ:  perldoc perlhist,

and be surprised to find out that M$ shouts louder and invented everything

BUCK NAKED1 wrote:

> Everyone tells me that Visual Basic is now the language to learn, though
> I don' t understand why? VB is an  old language, and perl is newer and
> can do more.
>
> --Dennis



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

Date: Sun, 01 Apr 2001 19:34:23 +0100
From: "wayne.keenan" <wayne.keenan@ntlworld.com>
Subject: Re: what are the new languages?
Message-Id: <3AC774AF.51B2A273@ntlworld.com>

windows perl:

use Tk;
use Win32::*   # loads of modules.

#u dont need MFC.  you have high-level data types, Storable and Tk.

and for the IDE:
http://open-perl-ide.sourceforge.net
http://cmdoc.codemagiccd.com/

Gregory Toomey wrote:

> For GUIs, VB would be a good choice on windows platforms. The othe choices -
> Visual C++,  Visual J Builder, Borland C++, Delphi - arent as easy to Learn.
> I went insane with the Microsoft  Foundation Classes under Visual C++.
>
> We need a Visual Perl - with a Windows API.
>
> gtoomey
>
> ---------------
> "Gwyn Judd" <tjla@guvfybir.qlaqaf.bet> wrote in message
> news:slrn9cdk5s.2uk.tjla@thislove.dyndns.org...
> > I was shocked! How could BUCK NAKED1 <dennis100@webtv.net>
> > say such a terrible thing:
> > >Everyone tells me that Visual Basic is now the language to learn, though
> > >I don' t understand why? VB is an  old language, and perl is newer and
> > >can do more.
> >
> > Can do more? Really. What can you do with Perl that you can't with VB?
> > Programmatically that is. I know Perl runs on more different platforms
> > than VB.
> >
> > --
> > Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
> > If you give Congress a chance to vote on both sides of an issue, it
> > will always do it.
> > -- Les Aspin, D., Wisconsin



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

Date: 1 Apr 2001 21:36:06 GMT
From: gorilla@elaine.furryape.com (Alan Barclay)
Subject: Re: what are the new languages?
Message-Id: <986160947.646954@elaine.furryape.com>

In article <7388-3AC6C8C8-36@storefull-241.iap.bryant.webtv.net>,
BUCK NAKED1 <dennis100@webtv.net> wrote:
>Everyone tells me that Visual Basic is now the language to learn, though
>I don' t understand why? VB is an  old language, and perl is newer and
>can do more.

Actually Perl is older than VB. Perl first came out in 1987, when windows
basically did not exist.


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

Date: Tue, 03 Apr 2001 04:58:45 GMT
From: "Todd Smith" <todd@designsouth.net>
Subject: Re: what are the new languages?
Message-Id: <9Mcy6.3720$C51.1327860@news1.rdc1.tn.home.com>

What's Parrot?

"Tom Briles" <sariq@texas.net> wrote in message
news:3ac8f092.274480602@news.texas.net...
> On Sat, 31 Mar 2001 03:44:35 GMT, "Todd Smith" <todd@designsouth.net>
> wrote:
>
> >So what's the next new programming language
> >gonna be?
>
> Parrot, of course.
>
> - Tom




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

Date: Sun, 01 Apr 2001 19:27:05 +0100
From: "wayne.keenan" <wayne.keenan@ntlworld.com>
Subject: Re: what are the new languages?
Message-Id: <3AC772F8.A3680F7A@ntlworld.com>

its got some perl constructs:  foreach, eval, reg-exs.

Gregory Toomey wrote:

> "Gwyn Judd" <tjla@guvfybir.qlaqaf.bet> wrote in message
> news:slrn9ccp3l.u6i.tjla@thislove.dyndns.org...
> > More likely .NET: www.microsoft.com. They have the money and the
> > expertise to push something like this past the critical mass.
>
> C# may be the answer - Microsoft's revenge on Java.
>
> gtoomey



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

Date: 02 Apr 2001 11:50:00 GMT
From: robseegel@aol.com (Rob Seegel)
Subject: Re: Whats is the best Perl book to tech "How to use Perl With SQL servers"?
Message-Id: <20010402075000.25689.00001976@ng-cs1.aol.com>

If you want a generic book on DBI
then I second this suggestion. It's
an excellent start.

>  Programming the Perl DBI 

It clearly covers the basics, but 
inevitably, you will need to get
a book on the database that you
will be working with. A generic book
on DBI only goes so far.

If you're going to be working with
MySQL and can only afford one book,
then the following will probably be
the way to go. It will serve as an 
excellent reference on MySQL
and an OK reference on Perl DBI
with good example code. I only
give it ok, because fully covering the
Perl DBI is outside the scope of the
book. There's enough to get you 
going, but probably not enough to
answer most questions you may run
into.

>The book _MySQL_ by Paul DuBois from >New Riders Press is pretty much the
>definitive introduction to that RDBMS 

Get both.

Rob


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

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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.

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 V10 Issue 615
**************************************


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