At 12:29 PM -0700 4/14/11, mark baumeister wrote:
Hi,
I am trying to move array elements (populated from the ) into a
hash
as pairs [i] and [i + 1] and then print them out using the code below.
If I enter "bob" as the first element and hit enter I get the
error messages below. I guess there are m
mark baumeister wrote:
Hi,
Hello,
I am trying to move array elements (populated from the) into a
hash
as pairs [i] and [i + 1] and then print them out using the code below.
If I enter "bob" as the first element and hit enter I get the
error messages below. I guess there are multiple problems
On 14/04/2011 20:29, mark baumeister wrote:
Hi,
I am trying to move array elements (populated from the) into a
hash
as pairs [i] and [i + 1] and then print them out using the code below.
If I enter "bob" as the first element and hit enter I get the
error messages below. I guess there are multiple
On 11-04-14 03:29 PM, mark baumeister wrote:
#create key - value pairs to go into a hash by first entering each
into a list @k or @v
print "input key/value pairs: first a key then return, then a value
then return, etc. To stop entering key/value pairs type 'stop'\n";
while ($kv =) {
chomp($kv
Jeremiah Foster writes:
[...]
> Harry, this appears to be off topic since it does not deal directly
> with beginner's perl questions. I think you may find better response
> on a Gentoo list.
Off topic and embarrassing. My 2nd time in the spc of a week.
I've got to quit jumping to perl when I
On Nov 2, 2009, at 17:07, Harry Putnam wrote:
I noticed I've been masking gcc beyond version 4.3.2-r3, and have
forgotten why I had it masked.
I'm updating world right now, and wondered if I were to move up to
most recent gcc (4.4.2), which would be a 5 version jump, what I could
expect in the
On Thu, Jul 13, 2006 at 02:33:44PM +0200, OROSZI Balázs wrote:
> Hi guys!
>
> I'm a total Perl beginner, and I delete most mails, as either I cannot
> answer or I'm not interested. I'm reading through this thread from the
> Trash folder, and this is what I gathered:
>
> Mr. Shawn H. Corey - cal
On 14/07/06, Mathew Snyder <[EMAIL PROTECTED]> wrote:
Mike Martin wrote:
> On 13/07/06, OROSZI Balázs <[EMAIL PROTECTED]> wrote:
>> Hi guys!
>>
>> I'm a total Perl beginner, and I delete most mails, as either I cannot
>> answer or I'm not interested. I'm reading through this thread from the
>>
Mike Martin wrote:
> On 13/07/06, OROSZI Balázs <[EMAIL PROTECTED]> wrote:
>> Hi guys!
>>
>> I'm a total Perl beginner, and I delete most mails, as either I cannot
>> answer or I'm not interested. I'm reading through this thread from the
>> Trash folder, and this is what I gathered:
>>
>> Mr. Sha
On 13/07/06, OROSZI Balázs <[EMAIL PROTECTED]> wrote:
Hi guys!
I'm a total Perl beginner, and I delete most mails, as either I cannot
answer or I'm not interested. I'm reading through this thread from the
Trash folder, and this is what I gathered:
Mr. Shawn H. Corey - calm guy, good Perl skills
Hi guys!
I'm a total Perl beginner, and I delete most mails, as either I cannot
answer or I'm not interested. I'm reading through this thread from the
Trash folder, and this is what I gathered:
Mr. Shawn H. Corey - calm guy, good Perl skills
Rob Dixon - calm guy, good Perl skills
Ran
Please. This thread has gone on long enough. What started out as a
question with mixed responses (admittedly, I think mine may have been
off the mark), has turned into a waste of my drive space. So with
respect to those of us that have seen enough
MOVE ON ALREADY!!!
Don't say that please
Mathew Snyder wrote:
> Please. This thread has gone on long enough. What started out as a
> question with mixed responses (admittedly, I think mine may have been
> off the mark), has turned into a waste of my drive space. So with
> respect to those of us that have seen enough
>
> MOVE ON ALREAD
> I have develop a perl script that transfer a data that we want, from
one machine to another machine.
>
> $ftp_server= "***.***.***.***";
> $login = "roime";
> $password = "roimepuniran";
> $upload_to_dir = "/flow/flowBig";
> $input_file = "/flow/netflow";
> $new_file_name =
> Hola,
>
> How do I remove a file from a zip file and add it to a different
existing archive? From the Archive_Zip documentation I understand that
I'm clobbering the existing archives when i use the code below. How do
I not clobber them?
>
> thank you.
>
>
> use Archive::Zip qw( :ERROR_CODES
Rob Dixon wrote:
Wiggins D Anconia wrote:
Depending on what is writing the files, aka another controllable
program? I have had good luck with writing the file to a temporary
location, usually with a dot on the front, then executing a move from
that temp location to the real name. A move is usual
nt: Friday, December 12, 2003 6:37 AM
To: [EMAIL PROTECTED]
Subject: Re: Move a file
> Neill Taylor wrote:
> >
> > I am writing a script which will poll a directory and then move any
files
> > in the directory to a new directory dependant upon its name.
> >
> > The prob
Wiggins D Anconia wrote:
>
> > Neill Taylor wrote:
> > >
> > > I am writing a script which will poll a directory and then move any
> files
> > > in the directory to a new directory dependant upon its name.
> > >
> > > The problem I think I might have is that the script may try to pick
> a file
> >
> Neill Taylor wrote:
> >
> > I am writing a script which will poll a directory and then move any
files
> > in the directory to a new directory dependant upon its name.
> >
> > The problem I think I might have is that the script may try to pick
a file
> > that is still being copied into the dire
Neill Taylor wrote:
>
> I am writing a script which will poll a directory and then move any files
> in the directory to a new directory dependant upon its name.
>
> The problem I think I might have is that the script may try to pick a file
> that is still being copied into the directory whilst the
Rob Dixon made a couple of mistakes in writing:
>>
>> closedir(DIR);
>
> Do this after you've finished reading it.
(meaning 'directly after you've finished reading the directory' :)
> This should work roughly as intended. If you need to know what
> your current working directory is,
>
> use C
Jose Malacara wrote:
>> opendir(DIR, 'data') ...
>
> This allows me to grab the correct file names from within the 'data'
> directory, but I guess that my problem happens when the script
> actually goes to parse those files that it only looks for the
> filenames locally, rather than in the actual '
Jose Malacara wrote:
> foreach my $file (@files) {
>my $input="$file";
>
> open(INFILE,"$input") || die "Can't open file $input"; #<=== is opening
> correct file name, but not 'data/logfile1.
I think your problem is here. Presuming that data is a subdirectory of the directory
your script
ot;;
}
}
}
}
closedir(DIR);
close INFILE;
==
- Original Message -
From: "Wiggins d'Anconia" <[EMAIL PROTECTED]>
To: "Jose Malacara" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 8:11 PM
Jose Malacara wrote:
> opendir(DIR, ".");
> my @files = readdir(DIR);
How about:
opendir (DIR, "../adm"); ?
It works for me.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sure lots of ways, this is Perl ;-)...
Jose Malacara wrote:
Hello.
I have a script that parses csv files for the occurence of an IP address that is passed to the script as an argument when it runs. Currently, I can only run the script from within the same directory as my data files. I would like
perldoc -f rename
Don't know if rename accepts wild cards. If not you can use an opendir
with a foreach loop, not as short/clean but will work pretty well.
http://danconia.org
Shishir K. Singh wrote:
> Is there a keyword for moving a set of files from one dir to another
> eg like doing
>
The File::Copy module provides two basic functions, copy and move, which are
useful for getting the contents of a file from one place to another.
- Original Message -
From: "Michael McQuarrie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 3:51 PM
Subject: mo
L PROTECTED]
> Subject: RE: move
>
>
> I think 'system("mv", "/dir/file", "/dir2/file");', will only
> work if you
> have access to unix functions.
>
>
> system("mv", "/dir/file", "/dir2/file");
>
I think 'system("mv", "/dir/file", "/dir2/file");', will only work if you
have access to unix functions.
system("mv", "/dir/file", "/dir2/file");
> -Original Message-
> From: Michael McQuarrie [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 10:51 AM
> To: [EMAIL PROTECTED]
system("mv", "/dir/file", "/dir2/file");
> -Original Message-
> From: Michael McQuarrie [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: move
>
>
> I'm sure this is a dumb question. It seems like one anyways.
> Is there a move c
I think the rename function is what you're looking for:
rename "old", "new";
-Original Message-
From: Michael McQuarrie [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 31, 2001 10:51 AM
To: [EMAIL PROTECTED]
Subject: move
I'm sure this is a dumb question. It seems like one anyways.
> Is there a Perl way to move a folder with out doing it one file at a
> time? (Similar to M$ Windows Explorer where you can drag a folder to
> another folder?)
In some cases:
rename $Old $New;
will work.
In some cases,
system ("mv $Old $New");
will work.
There's a bit more detail
33 matches
Mail list logo