[10246] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3839 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Sep 28 01:07:50 1998

Date: Sun, 27 Sep 98 22:00:18 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 27 Sep 1998     Volume: 8 Number: 3839

Today's topics:
        an observation on why python will fail <eep1lw@surrey.ac.uk>
    Re: an observation on why python will fail (Alastair)
    Re: Best Editor for Perl (under WinNT4) - Syntax Colori <arranp@datamail.co.nz>
    Re: DBI/mysql (Michael Fuhr)
    Re: FAQ reading built in to newsreaders (was Re: Is the (John Moreno)
        gas 2.5 for HPUX-10.10 lbello@gartner.com
    Re: gas 2.5 for HPUX-10.10 <uri@sysarch.com>
    Re: help with removing leading zeros with reg-exp (Charles DeRykus)
    Re: help with removing leading zeros with reg-exp <ajohnson@gpu.srv.ualberta.ca>
        Help with system() on NT scottw7562@my-dejanews.com
    Re: insert to sorted list via sort? <samwang@freewwweb.com>
    Re: insert to sorted list via sort? <uri@sysarch.com>
    Re: just to show you how screwed up the server is... (Joergen W. Lang)
        Need help attaching to network resources. <mcope@earthlink.net>
    Re: Perl , Java, Cold Fusion or Net Fusion? (Troy Denkinger)
        Perl and viruses <8734.g23@g23.relcom.ru>
    Re: Perl inconsistency? (Martien Verbruggen)
    Re: Perl warning  ?! <gellyfish@btinternet.com>
    Re: POLL: Perl features springing into your face (Thomas A. Horsley)
    Re: Redirection Question (Martien Verbruggen)
        Require NT console to act as a terminal. <cdliving@ix.netcom.com>
        Saving with WIN 32 GD ... found what I needed <cablegp@the-snakepit.com>
    Re: script: scriptMangle! (Marc Bissonnette)
    Re: When did you last use AWK (was Re: free book on sh/ (Mark-Jason Dominus)
    Re: When did you last use AWK (was Re: free book on sh/ (David Alan Black)
    Re: When did you last use AWK (was Re: free book on sh/ <uri@sysarch.com>
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Mon, 28 Sep 1998 00:16:29 +0100
From: Lloyd Wood <eep1lw@surrey.ac.uk>
Subject: an observation on why python will fail
Message-Id: <Pine.SOL.3.95.980928000958.8164M-100000@petra.ee.surrey.ac.uk>

It always comes down to the most visible leading advocate and exemplar:
tcl:    John Ousterhout
perl:   T^HLarry Wall
python: George Reese

L.

It's not quite free documentation: Richard Stallman, but it's damn close.

<http://www.ee.surrey.ac.uk/Personal/L.Wood/>PGP<L.Wood@surrey.ac.uk>



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

Date: Mon, 28 Sep 1998 00:47:57 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: an observation on why python will fail
Message-Id: <slrn70tqta.2og.alastair@calliope.demon.co.uk>

Lloyd Wood <eep1lw@surrey.ac.uk> wrote:
>It always comes down to the most visible leading advocate and exemplar:

Bullshit.

-- 

Alastair
work  : alastair@psoft.co.uk
home  : alastair@calliope.demon.co.uk


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

Date: Mon, 28 Sep 1998 14:10:21 +1200
From: Arran Price <arranp@datamail.co.nz>
Subject: Re: Best Editor for Perl (under WinNT4) - Syntax Coloring ?
Message-Id: <360EF00D.5A1E@datamail.co.nz>

Alec Stewart wrote:
> 
> Hi,
> 
> Can anyone recommend a decent Editor for Perl (5) ?
> - Ideally something with Syntax Coloring
> (like KEDIT seems to do for other languages...)
> 
> I am running under WinNT 4 (SP3).
> 
> Yrs
> 
> Alec

ultraedit.com


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

Date: Mon, 28 Sep 1998 03:39:55 GMT
From: mfuhr@dimensional.com (Michael Fuhr)
Subject: Re: DBI/mysql
Message-Id: <6un0du$2qh@flatland.dimensional.com>

Dustin Puryear <dpuryear@usa.net> writes:

> How do I *create* a table in a database using DBI? I read the DBI
> info. and couldn't find it. I tried to create a program, taken from the
> documentation, but it doesn't work. ANY help would be appreciated since
> I can't find _any_ information on how to create a table rather than
> retrieve information from one. Please email a copy of your reply, if
> possible, because my access to a news server is only 1 to 2 days a week.

You don't create a table with DBI, you use DBI to send the appropriate
table-creation command to your database.  Try checking an SQL reference
for the syntax of CREATE TABLE, or check your database's documentation
if it's something different.

-- 
Michael Fuhr
http://www.fuhr.net/~mfuhr/


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

Date: Sun, 27 Sep 1998 21:03:23 -0500
From: phenix@interpath.com (John Moreno)
Subject: Re: FAQ reading built in to newsreaders (was Re: Is there any FAQ?)
Message-Id: <1dg18lp.bdrr421riy1lsN@roxboro0-052.dyn.interpath.net>

Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote:

[Followups not honored, but reset because it really doesn't belong in
clpm]

> [ I am using `FAQ' with the silent `L' -> Frequently Asked Questions List ]
> 
> "Hansi Hinterseer" <elchmann@hotmail.com> writes:
> 
> > X-Newsreader: Microsoft Outlook Express 4.71.1712.3
> > I wondered if there is a FAQ about Perl or the NGs. Is there?
> 
> of course, perl has many FAQs, many frequently-posted pointers to
> these FAQs, and a still questions from the FAQ (and questions asking
> if there even IS a FAQ!) are posted every day.
> 
> what newsreaders (other than mine) already have a `find a FAQ' button?
> if I can do it with UUCP, surely those with an integrated web browser
> could do better -- launch a separate window searching on faqs.org
> automatically, say.

YA-NewsWatcher does.  But for people using browsers -
<http://www.newsreaders.com/groups/groups.html> get's links to the faq
from ohio-state or faq.org (if it's not at ohio-state) and links to the
last week worth of articles via dejanews.

-- 
John Moreno


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

Date: 28 Sep 1998 01:40:45 GMT
From: lbello@gartner.com
Subject: gas 2.5 for HPUX-10.10
Message-Id: <6umpet$q9v@news1.snet.net>
Keywords: gas 2.5

Does anyone know where I can get gas 2.5 for hp-ux 10.10?

thanks,

lbello@gartner.com





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

Date: 27 Sep 1998 23:25:24 -0400
From: Uri Guttman <uri@sysarch.com>
To: lbello@gartner.com
Subject: Re: gas 2.5 for HPUX-10.10
Message-Id: <x7hfxsvryz.fsf@sysarch.com>

>>>>> "l" == lbello  <lbello@gartner.com> writes:

  l> Does anyone know where I can get gas 2.5 for hp-ux 10.10?  thanks,

boy, this has to be one of the most off-topic, non-spam posts we have
ever seen. how does this in any way have to do with perl? 

uri


-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire  ----------------------  Perl, Internet, UNIX Consulting
uri@sysarch.com  ------------------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

Date: Sun, 27 Sep 1998 21:44:59 GMT
From: ced@bcstec.ca.boeing.com (Charles DeRykus)
Subject: Re: help with removing leading zeros with reg-exp
Message-Id: <Ezypr0.7Jy@news.boeing.com>

In article <360db000.2359138@news.ping.be>,
Bart Lateur <bart.mediamind@ping.be> wrote:
>Craig Berry wrote:
>
>>Abigail (abigail@fnx.com) wrote:
>>
>>:     map {s/^0+//} @line_element [0 .. 5];
>>
>>Evil!  Evil!  Map in void context!  Danger, Will Robinson! :)
>
>For some odd reason, Abigail prefers map in a void context over foreach,
>as being "more readable". See recent threads about that. I for one can't
>see it like that.
>
>	foreach (@line_element[0 .. 5]) { s/^0+// }
>

There can be a certain semantic sugar in eyeballing the 
loop action first. In this case you're wading
through visually tedious range operands to get to
a single statement loop essence.

There are some wonderful idioms possible only with 
statement modifiers. If you couldn't 'sleep' for 
some reason, you'd say: 

     1 while time - $start < $delta;

Anything else is well, unnatural :)


Another thread explored the dream that someday
you'd be able to say

    @line_element [0 .. 5] = map { {s/^0+//};


or some variant like that to erase the shame of void 
context.

I believe there's a for/foreach statement modifier
struggling to get out and map in a void context is 
as close as you can get right now.


Regards,
--
Charles DeRykus


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

Date: Sun, 27 Sep 1998 20:35:56 -0500
From: Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
Subject: Re: help with removing leading zeros with reg-exp
Message-Id: <360EE7FC.4EED1D73@gpu.srv.ualberta.ca>

Charles DeRykus wrote:

[snip] 

> I believe there's a for/foreach statement modifier
> struggling to get out and map in a void context is
> as close as you can get right now.

no, using the for/foreach statement modifier is as
close as you can get right now:

s/^0+(?=\d)// for @line_elements[0..5];

where 'right now' is 5.005_02

regards
andrew


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

Date: Mon, 28 Sep 1998 03:15:03 GMT
From: scottw7562@my-dejanews.com
Subject: Help with system() on NT
Message-Id: <6umuvn$4lj$1@nnrp1.dejanews.com>

Hi all

I have a simple PERL script that uploads an rtf and copies it to the right
location. The code to perform the file copy is:-

system("copy","$tmpfname","$Outputdir\\$storefname") == 0 || die("system
command failed: $?");

The command works, trouble is there is a Print "Location: http://....."
following this command and even though the command returns true, the browser
just displays the text Location: http://.....

What seems to be happening is the output of the copy command interferes with
the header (??) Is there some way on NT that I can eliminate this problem...

I read the docs and apparently the `backtick` method is not supported under
NT ?? otherwise I should be able to capture and supress the output of the
command.

Thanks in advance
Scott Wilson

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Sun, 27 Sep 1998 17:19:37 -0500
From: Sam Wang <samwang@freewwweb.com>
To: spav@indiana.edu
Subject: Re: insert to sorted list via sort?
Message-Id: <360EB9F8.F83E9C6E@freewwweb.com>

perl was born to sort and extract. there should be minimal differences.

spav@indiana.edu wrote:

> i am trying to maintain a sorted list of data (frequently updated, needs
> to be
> sorted). i thought that it could be more efficient to use perl's
> internal sort function to make insertions, rather that to write my own
> recursive binary insertion subroutine. i have my doubts now, however.
> so is it terribly inefficient to do:
>
>     @sorted_list = sort { #comparison code } ($new_element,
> @sorted_list);
>
> versus a pure perl binary insert?
>
> thanks muchly,
>
> steven e. pav
> spav@indiana.edu



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

Date: 27 Sep 1998 23:15:17 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: insert to sorted list via sort?
Message-Id: <x7k92pudve.fsf@sysarch.com>

>>>>> "s" == spav  <spav@indiana.edu> writes:

  s> i am trying to maintain a sorted list of data (frequently updated,
  s> needs to be sorted). i thought that it could be more efficient to
  s> use perl's internal sort function to make insertions, rather that
  s> to write my own recursive binary insertion subroutine. i have my
  s> doubts now, however.  so is it terribly inefficient to do:

  s>     @sorted_list = sort { #comparison code } ($new_element,
  s> @sorted_list);

  s> versus a pure perl binary insert?

why must it be sorted all the time? do you do more insertions or
accesses? how long a list is it typically? all of these and other
factors can influence the best way to solve your problem.

what i am really asking is what is the real problem, not what is the
best way to do what you directly asked for.

a common issue i have with computer problems is making sure you are
solving the right problem and asking the right questions.

hth,

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire  ----------------------  Perl, Internet, UNIX Consulting
uri@sysarch.com  ------------------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

Date: Mon, 28 Sep 1998 03:55:36 +0100
From: jwl@_munged_worldmusic.de (Joergen W. Lang)
Subject: Re: just to show you how screwed up the server is...
Message-Id: <1dg1qhi.1v113a412pfvwN@host009-210.seicom.net>

caustic <caustic@causticinteractive.nospam.com> wrote:

> i tried out a sample script before using the headlines code:
> 
> #!/usr/bin/perl
>    print ("hello world!\n");
> 
> and i received an 'internal server error'.
> 
> then i tried execing the script from the location bar in my browser, then i
> even tried using a SSI <!--#exec cgi="/cgi-bin/headlines"-->
> 
> and nothing happens!  :)
> 
> i know that perl scripts work because i've got a customized version of
> wwwboard and mailform.
> 
> very bizarre.
> 
> keith.

Well, you just about got it right...

You have the "is laughing" statement in line 9, which is now the
official 5.005 way of saying "She bangs -w". Still, I got 500 severe
internal errors on my BSD*. What am I doing wrong ?

Joergen

*brain surgery daemon /(?:-)//e;
-- 
  To reply by email please remove _munged_ from address Thanks !
-------------------------------------------------------------------
   "Everything is possible - even sometimes the impossible"
             HOELDERLIN EXPRESS - "Touch the void"


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

Date: Sun, 27 Sep 1998 17:33:56 -0700
From: "Michael Copeland" <mcope@earthlink.net>
Subject: Need help attaching to network resources.
Message-Id: <6umld2$gnj$1@ash.prod.itd.earthlink.net>

I have been trying to attach to network resources using the
Win32::Netresoucre module.  but I don't seem to have the statement correct.
Could some please seem me an example of how the addconnection expression is
suppose to be used.

Your help would be greatly appreciated.

Michael




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

Date: Mon, 28 Sep 1998 00:41:07 GMT
From: troy@whadda.com (Troy Denkinger)
Subject: Re: Perl , Java, Cold Fusion or Net Fusion?
Message-Id: <6umlsf$i5e$1@hirame.wwa.com>

cc'ed via email to original author

In article <360dd141.0@news.cyberway.com.sg>, "Crimson Knight" 
<c.knight@usa.net> wrote:
>I'm sorree if i've got the wrong newsgroup but would appreciate if someone
>could help me.
>I'm creating an online auction on the web and i'm given this three
>applications/programmes to chose from. Which one should i use? I need
>something fast and secure with database capability.

My comments are pertinent to Perl, Java and Cold Fusion.  I suspect they're 
also applicable to Net Fusion, but I don't know it.

Having used each of these solutions, I would have to say that each will fit 
the criteria you have defined.  Used incorrectly, each can be insecure and 
each can be slow.  Each has the ability to work with data stored in databases.

Do you have any real design goals?  How about a specification of some sort?  
If you have neither of these, settling on a language or development platform 
is putting the cart before the horse.

If you just want an answer, I suggest you use the one you're most comfortable 
with.

Regards,

Troy denkinger



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

Date: Mon, 28 Sep 1998 04:00:03 +0300
From: "8734.g23" <8734.g23@g23.relcom.ru>
Subject: Perl and viruses
Message-Id: <360ed0a6.0@news.portal.ru>

I would like to discuss a problem  detection and destruction of viruses by
Perl. Who knows similar algorithm?.
Regards?
Nicolai Yanishevsky



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

Date: Sun, 27 Sep 1998 23:31:24 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Perl inconsistency?
Message-Id: <gVzP1.17$df.88995@nsw.nnrp.telstra.net>

In article <360D7A30.D862BE6A@creative.net>,
	Farhad Farzaneh <ff@creative.net> writes:

> However, when I try to build a short script to test this behaviour, I never
> get this
> error.

Are both your code and your test script running with the same pragmas?
use strict, use diagnostics, and that stuff?

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | Make it idiot proof and someone will
Commercial Dynamics Pty. Ltd.       | make a better idiot.
NSW, Australia                      | 


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

Date: 27 Sep 1998 23:05:56 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Perl warning  ?!
Message-Id: <6umgck$da6$1@gellyfish.btinternet.com>

On Sun, 27 Sep 1998 22:30:36 +0200 Ralf Meuser <ralf.meuser@wanadoo.fr> wrote:
> When I try   perl -v
> I get the follwing message:

> perl:  warning: setting local failed.
> perl:  warning: Please check that your local settings:
>              LC_ALL = (unset),
>              LANG = "fr"
>     are supported and installed on your system.
> perl:  warning:  Falling back to the standard local ("C").

> This is perl, version 5.004_04 built for i386-linux

> I don't know what is wrong or missing.
> Can somebody help me

The perllocale manpage discusses things of this nature.  As I understand
Perl carries out a sanity check on your Locale settings and warns of
any inconsistency that may impair the function of Locale sensitive
functions and operators.

You should check that you the correct locale files installed - on my system
the files are in /usr/share/locale with subdirectories for each Locale type

If you arent the sysadm of your system you should possibly seek assistance.

/J\
-- 
Jonathan Stowe <jns@btinternet.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>


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

Date: 27 Sep 1998 18:58:48 GMT
From: Tom.Horsley@worldnet.att.net (Thomas A. Horsley)
Subject: Re: POLL: Perl features springing into your face
Message-Id: <uaf3l9ycb.fsf@worldnet.att.net>

>Do not follow you.  Do you want to prohibit lexicals at toplevel
>scope, or what?  If yes, why?  And how is this a restate of
>life-time-of-emporaries issues?

Actually I probably shouldn't have used the word "restate", I really went
off on a tangent.

I guess I do want to prohibit top-level lexicals, mainly because of the
non-intuitive interactions (or lack of interactions :-) they have with
packages. Mostly they just seem to confuse people.

>Hmm, yea.  Do not know: nested subs, are they good for anything?  I
>did not see any meaningful usage, but maybe there is?

They can be useful in languages that define them "correctly" (although even
in Pascal and Ada programming, I've rarely had any reason to use them, but
I've also rarely had any reason to do Pascal or Ada programming :-). With
the sort of accidental definition they have in perl though, I can't see
any use.
--
>>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
      email: Tom.Horsley@worldnet.att.net icbm: Delray Beach, FL      |
<URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+


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

Date: Sun, 27 Sep 1998 23:17:12 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Redirection Question
Message-Id: <YHzP1.15$df.88995@nsw.nnrp.telstra.net>

In article <360C091D.8E77FA91@cowboys.anet-dfw.com>,
	Tom Turton <tturton@cowboys.anet-dfw.com> writes:
> Aside from being a little ugly, what is bad about the above?

You were ignoring possible errors. You should always check the return
value of an open. This is not pedantry, but something that programmers
have learned the hard way. Ignore errors like this, and you end up in
debugging hell.

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | We are born naked, wet and hungry. Then
Commercial Dynamics Pty. Ltd.       | things get worse.
NSW, Australia                      | 


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

Date: Sun, 27 Sep 1998 21:33:32 -0700
From: "Cecil Livingston" <cdliving@ix.netcom.com>
Subject: Require NT console to act as a terminal.
Message-Id: <6un3pv$56m@dfw-ixnews6.ix.netcom.com>

Hello:

I am new to Perl and must be missing something. I see there are packages for
ANSI console output where color and other attributes can be set for console
output but I am at a loss as to how. I must be missing something pretty
major, the NT information I have says that only a DOS driver can be
installed to get the ANSI output. Not what I want.

I am looking to do some tools for NT 4.0 for developers and need something
more than 1 question at a time, I need the screen to act as a terminal.

Is PERL on NT different, I have not found any documentation on setting up NT
to act as a terminal from the console. Is there any documentation available?

What about curses? I don't want to do graphic screens, text mode is fine.

Any help would be greatly appreciated




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

Date: Sun, 27 Sep 1998 20:01:35 -0400
From: Gregory P Cable <cablegp@the-snakepit.com>
Subject: Saving with WIN 32 GD ... found what I needed
Message-Id: <360ED1DF.DF3313D8@the-snakepit.com>

First I would like to thank Tony Wenzelhuemer for the suggestion.

Second ... I found what I needed after spending hours searching the web
(about 16).

To save gifs using the Win32 module you simply enter the following:

$myPath = "optionalPath\\filename.gif";
$image->gif($myPath);


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

Date: 28 Sep 1998 04:42:51 GMT
From: dragnet@internalysis.com (Marc Bissonnette)
Subject: Re: script: scriptMangle!
Message-Id: <6un44b$7a4$1@news.interlog.com>

I've got to add my $.02 to this debate (Though I've seen it pop up a zillion 
times over the years);

I've been using Perl for about four years now, though only really earning any 
money at it in the last year or so. Personally, I never hide my code, simply 
because of the fact that I've learned so much from other people's work, it's 
the very least I can do to pay back the community (at least a little). 

I've learned enough over the last six months, especially, that I'm going back 
over my code, documenting it as well as I can, and hopefully get it listed in 
some of the many fine CGI resource sites around. My only caveat to the code 
will be similar to those found in most other scripts: You may not make any 
money on my code itself, but feel free to make a killing setting it up or 
customizing :)

To be fair, I can see the economic side of hiding code, especially if you've 
written something so custom that there's nothing out there like it, but quite 
frankly, I don't think there are a whole lot like that. 

An example from my own experiences; My best Perl learning experience was 
writing a web-builder (script that assembles a web site from form input, along 
with multiple styles, edit capability, etc, etc). When I looked up web builders 
in the CGI resource sites, I found about thirty of them within fifteen minutes 
of looking. At first, the project was simply a heavily modified version of an 
existing web script. In the end, the script is completely customized, with 
nothing copied from other scripts, other than using CGI-lib.pl

Will I shroud the source? Nope. Though a lot of effort went into it (and a 
helluva lot of learning from those far better at it than I), I'd get a real 
kick out of getting a note in email some day saying that someone found my work 
useful. (Hey, a cheque in the mail would be nice too, but I'd still be happy 
witht he email :) :)

So, to sum up what I probably could have said in a sentance or two: While 
hiding your Perl source isn't necessarily evil, it does (to me, at least) go 
against the general heart of the Perl community in that open source makes for 
better programmers all around.
-- 
Marc Bissonnette
InternAlysis
Corporate Internet Research and Results!
http://www.internalysis.com



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

Date: 27 Sep 1998 22:53:34 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: When did you last use AWK (was Re: free book on sh/sed/awk)
Message-Id: <6umfle$gq5$1@picasso.op.net>

In article <6umbv5$cio$1@gellyfish.btinternet.com>,
Jonathan Stowe  <gellyfish@btinternet.com> wrote:
>But apart from that I cant think of a possible situation where I might use
>AWK nowadays.  But of course others may differ in their opinion.

I still use it all the time for stuff like

	awk '{print $NF}'

I think it was in connection with one-liners like this that:

	Hey, I had to let awk be better at *something*... :-) 
	--Larry Wall in <1991Nov7.200504.25280@netlabs.com>



-- 

mjd@pobox.com                                             Mark-Jason Dominus
mjd@plover.com                              Plover Systems, Philadelphia, PA



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

Date: 27 Sep 1998 20:21:28 -0400
From: dblack@pilot.njin.net (David Alan Black)
Subject: Re: When did you last use AWK (was Re: free book on sh/sed/awk)
Message-Id: <6umkq8$69h$1@pilot.njin.net>

Hello -

Jonathan Stowe <gellyfish@btinternet.com> writes:

>But apart from that I cant think of a possible situation where I might use
>AWK nowadays.  But of course others may differ in their opinion.


I still pipe things through awk 'print {$1}' (or whatever)
fairly often.  It's just "in my fingers" (and it works :-)


David Black
dblack@saturn.superlink.net


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

Date: 27 Sep 1998 23:19:37 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: When did you last use AWK (was Re: free book on sh/sed/awk)
Message-Id: <x7iui8vs8m.fsf@sysarch.com>

>>>>> "MD" == Mark-Jason Dominus <mjd@plover.com> writes:

  MD> In article <6umbv5$cio$1@gellyfish.btinternet.com>, Jonathan Stowe
  MD> <gellyfish@btinternet.com> wrote:
  >> But apart from that I cant think of a possible situation where I
  >> might use AWK nowadays.  But of course others may differ in their
  >> opinion.

  MD> I still use it all the time for stuff like

  MD> 	awk '{print $NF}'

  MD> I think it was in connection with one-liners like this that:

  MD> 	Hey, I had to let awk be better at *something*... :-) --Larry
  MD> Wall in <1991Nov7.200504.25280@netlabs.com>

i agree. for REALLY simple one liners like printing the 1st field, awk
may be simpler and somewhat faster. sed is more useful if you have to
write shell scripts. sometimes install programs have to be in shell
(since perl may not be installed yet) and so knowledge of the unix text
programs like sed and awk is very useful.

o'reilly has a good book on sed and awk. it ain't free but not much good
stuff (other than perl docs) is free. if you have any unix experience,
the man pages may be good enough (they were/are for me; it's how i
learned unix in all it's glory and ugliness).

uri


-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire  ----------------------  Perl, Internet, UNIX Consulting
uri@sysarch.com  ------------------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

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


Administrivia:

Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.

If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu. 


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 3839
**************************************

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