Re:Parsing a file

2001-07-19 Thread Jorge Goncalvez
Hi , I wanted to parse the last line of a file c:\cygwin_syslog.txt and if it begins with : tftpd i want to draw a progress bar which is growing from 0 to 100, in a GUI. My code is: open SYSLOG,") { chomp; if (/^tftpd/) {

Re:Parsing a file with regex

2001-10-22 Thread Jorge Goncalvez
Hi, How can I do to parse a file(c:\cygwin\etc\DHCPD\dhcpd.conf) which is for exemple a part which contains: host col36545c { hardware ethernet 00:02:A5:31:7D:7C; option vendor-encapsulated-options "install:KLOR_1:%77.90"; filename "/bootp/linux