I have written a lot of UNIX Shell programs in the past because they are
such an effective/efficient way to get things done for a non-programmer like 
me. When I looked into PERL and found all those commands like grep, cut, 
etc. documented ... I thought I'd finally found a way to '...stand on the 
shoulders' again.

However, I can't seem to get the simplest things to work. I did do the hello 
program OK, just to make sure I got the source code loaded right.

I work in a PC running Windows and I built a 1 line text file called "try" 
that looks like:

aaaa|bbbbb|cccc|dddd|eeee

Then I try to run the cut command from a PERL file (named hello because it 
is basically a copy of the heelo example, I hope) that looks like:

#!D:perl/bin/ -w
cut -f3,5 -d"|" try

I change directories to d:\perl\bin and typeperl c:\hello

What I get back is a bunch of complaints.

Unquoted string "cut may clash with future reserved word at c:\hello line 2.
Bareword found where operator expected at c:\hello line 2, near ""|" c"
and more ...

I get the feeling I'm looking for my glasses and they're propped up on 
myforehead again. Anybody care to point me in a direction?

-Dadneo
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to