drian
- Forwarded by Adrian Farrell/UK/INSTINET on 06/01/2005 12:12 -
Adrian Farrell
(Ext.
Hi,
I have an issue that makes me think there maybe something fundamental I'm
misunderstanding about how perl operates.
The code below simply replaces the ASCII SOH character \001 with a space in
real time on a logfile.
And it works great if the output is printed to screen, BUT, if it's
printed
To
26/07/2004 14:08 Adrian Farrell/UK/[EMAIL PROTECTED]
cc
perl beginners <[EM
Hi,
I'm looking for a way to read log files in real time, so that each time a
new entry appears in the file I can perform a search/query (whatever
really!) on it.
it's odd really, as I expected this to be a very common scenario and yet I
can find nothing on it!
I think there maybe some way to ac
Hi,
running the command:
date|awk '{print $2,$3}'
provides me with the output I require (i.e. the month and day, May 6).
however, when I try to call this from within a perl script:
system("date|awk '{print $2,$3}'");
I get:
awk: syntax error near line 1
awk: illegal statement near line 1
any
oops, ignore last mail, having one of those days, there was an accidental
capitalization :}
_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
To unsubscribe, e-mail:
hi,
I simply wished to strip out all the ">" from a text file. below is the
script and the error that is reported. I cannot see anything wrong, it's
such a simple piece of code! can any one help, are my eyes deceiving me?
thanks,
Adrian
#!/usr/bin/perl -w
open(INPUT, "letter.txt") || die "c
Hi,
I've just written my first practice script from a book on learning perl.
it just performs a basic calculation of the area of a circle. out of
interest I decided I wanted the answer underlined and that the underline
should be the exact length of the answer. the script is shown below. The