Re: Will not read line and split.

2002-10-05 Thread dan
ir\n"; > chomp $file; > > #Open Files > open (FH, "< $file") or die "could not open $file"; > $tstopen = ; > chomp $tstopen; > print "$tstopen\n"; > while () { > @fields1 = split /:/, $tstopen; > print &quo

RE: Will not read line and split.

2002-10-04 Thread Jeff 'japhy' Pinyan
On Oct 4, Chuck Belcher said: >I can now get the first part to open and read a file, however, It still >does not work when I am reading the directory. The print $file found in >$in_dir does work it displays a list of files in the directory. The open >(IN1, "<$file"); does not appear to open the f

RE: Will not read line and split.

2002-10-04 Thread Chuck Belcher
# Read Directory >while ($file = readdir(IN_DIR)) { > next if $file =~ /^\.\.?$/; > print "$file found in $in_dir\n"; > chomp $file; >#Open Files > open (IN1, "< $file"); > $tstopen = ; > chomp $tstopen; > print "$tstopen\n"; >@fiel

RE: Will not read line and split.

2002-10-04 Thread nkuipers
iles > open (IN1, "< $file"); > $tstopen = ; > chomp $tstopen; > print "$tstopen\n"; >@fields1 = split /:/, $tstopen; >print "$fields1[0]\n"; > >chuck > >-Original Message- >From: Mark Anderson [mailto:[EMAIL PROT

RE: Will not read line and split.

2002-10-04 Thread Chuck Belcher
en (IN1, "< $file"); $tstopen = ; chomp $tstopen; print "$tstopen\n"; @fields1 = split /:/, $tstopen; print "$fields1[0]\n"; chuck -Original Message- From: Mark Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 7:09 PM To: Ch

Will not read line and split.

2002-10-04 Thread Chuck Belcher
My goal is to spit a file or files that are in a specific directory. My problem is that I can't read the file. Attempt to read file: #!/usr/bin/perl open (IN, " < /opt/crxml/tstdir/updt1.dat"); until (eof IN) { $line = ; chomp $line; print $line; @fields = split /:/, $line; print "$fie