On Tuesday, August 13, 2002, at 05:09 , Mario wrote:
[..]
> I'm triying to replace my awk habits with perl,

p0: perldoc a2p

will give you all sorts of information about the 'a2p'
application that is reasonable at how to deal with
converting 'awk' scripts into perl code.

a way of looking at that can be sorta seen with say:

http://www.wetware.com/drieux/pbl/misc/sh_to_perl.txt

since what you will want to become aware of is how to
do things with 'split'

cf:     perldoc -f split

but be forewarned I have little patience for doing what,
well, ok, what I did early on:

http://www.wetware.com/drieux/pbl/Weird/bloopers/slovenA2P.txt

since, well it was just stoopidly simpler to slovenly use
a2p to make perl like scripts from awk stuff - and then
just cut and paste it into the script where I needed it...
        
[..]
> For example with awk I used to get a column from the ps or ls -l command.


p1: here you will need to get into more of the gory details
of how to do 'perl as perl' -

        cf perldoc perl

as the 'root' of the online information

p2: my general list of URL's for doing fun with perl is

        http://www.wetware.com/drieux/pbl/perldoc/

you will find some of the on-line tutorials there....

p3: in the main perl does not require that you be
Franz Kafka to figure it out.... but there are
places where IT IS DANGEROUS!!! IT IS A BEAST!!!

        'Run Away!'
                - m.python


ciao
drieux

http://www.wetware.com/drieux/pbl/

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

This space left intentionally blank.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to