John W. Krahn wrote:
It doesn't look THAT great.
You're right John. I probably used my limited knowledge of Perl and a lot
of books to redo this script so that it worked exactly the way I wanted.
But, it works great for me! I do appreciate your correcting the syntax
though. It helps in
Chris Devers asked: Why aren't you using rsync for this?
Excellent question. It's because I'd never heard of rsync before. That's
why I'm on this list. Because I learn something new everyday. I've since
asked someone here who's familiar with that product to test it out for me
and he said it w
I need to combine directories as follows:
Source directory structure:
DirA
SubDirAA
More directories
SubDirAB
More directories
SubDirAC
More directories
DirB
SubDirAA
More directories
SubDirAB
needed.
I'm liking this Perl stuff more and more.
Thanks,
Debbie
-Original Message-
From: John W. Krahn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 4:40 PM
To: Perl Beginners
Subject: Re: Search Tab-delimited file for Null fields
Debbie Cooper wrote:
> Thanks to ev
Thanks to everyone for their help on this problem. I finally ended up using
the following:
#!perl
use warnings;
use strict;
my @empty = ();
my @headings = ();
my $sum;
open INDEX, "> fieldcontents.txt" or die "can't create fieldcontents.txt
$!";
open INPUT, ") {
if ($. == 1) {
DEX "\n";
I do get a print of the empty indexes but not a real useful one. What am I
doing wrong?
Thanks,
Debbie
-Original Message-
From: Chap Harrison [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 11:48 PM
To: Debbie Cooper
Cc: [EMAIL PROTECTED]
Subject: Re: Search
I'm pretty new to Perl but with the help of this list I've been able to come
up with a few helpful scripts. This time I'm trying to read through a
tab-delimited text file with the first row containing headers. I want to
print out any field/column name where the entire field is null (meaning
there
Thanks so much! This is great because I'm new to Perl and your comments
make things much easier to understand!
Thanks again,
Debbie
-Original Message-
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:54 PM
To: Debbie Cooper
Cc: [
I need to replace the tab delimited headings in a text file so that I end up
with shorter (lengthwise) headings. I have headings like the following:
Heading_1,122 Heading_2,122 AnotherHeading_1,1 ..
I want to replace these headings with something like the following:
x1 x2 and s
I need to search for the occurrence of a string in a file that is buried in
directories. So, for example, I have a directory structure that looks like
this C:\data\elec\1\220\webdata.tab. The last three folders change
frequently so I can have c:\data\appl\3\180\webdata.tab and so on. The file
I'
Please help, I am completely new to Perl but need to write a script that
does the following:
I have two directories DIR1 and DIR2 each containing files named LV1-
LV960.txt.
I need to concatenate the files in DIR1 with the files in DIR2 and put
them in DIR3. So DIR3 will now have files named LV1
11 matches
Mail list logo