Re: move array elements to hash

2011-04-17 Thread Jim Gibson
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

Re: move array elements to hash

2011-04-16 Thread John W. Krahn
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

Re: move array elements to hash

2011-04-16 Thread Rob Dixon
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

Re: move array elements to hash

2011-04-16 Thread Shawn H Corey
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

Re: Move to more recent gcc version.. what to expect

2009-11-02 Thread Harry Putnam
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

Re: Move to more recent gcc version.. what to expect

2009-11-02 Thread Jeremiah Foster
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

Re: MOVE ON ALREADY!!!

2006-07-16 Thread Chad Perrin
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

Re: MOVE ON ALREADY!!!

2006-07-14 Thread Mike Martin
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 >>

Re: MOVE ON ALREADY!!!

2006-07-13 Thread Mathew Snyder
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

Re: MOVE ON ALREADY!!!

2006-07-13 Thread Mike Martin
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

Re: MOVE ON ALREADY!!!

2006-07-13 Thread OROSZI Balázs
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

RE: MOVE ON ALREADY!!!

2006-07-12 Thread Jeff Peng
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

Re: MOVE ON ALREADY!!!

2006-07-12 Thread Mr. Shawn H. Corey
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

Re: Move folder from one pc to another pc...

2004-10-14 Thread Wiggins d Anconia
> 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 =

Re: Move file from one zip to another using Archive::Zip

2004-05-19 Thread Wiggins d Anconia
> 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

Re: Move a file

2003-12-13 Thread Wiggins d'Anconia
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

RE: Move a file

2003-12-12 Thread Tom Kinzer
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

Re: Move a file

2003-12-12 Thread Rob Dixon
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 > >

Re: Move a file

2003-12-12 Thread Wiggins d Anconia
> 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

Re: Move a file

2003-12-12 Thread Rob Dixon
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

Re: move data into separate directory

2003-02-06 Thread Rob Dixon
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

Re: move data into separate directory

2003-02-06 Thread Rob Dixon
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 '

Re: move data into separate directory

2003-02-05 Thread R. Joseph Newton
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

Re: move data into separate directory

2003-02-05 Thread Jose Malacara
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

Re: move data into separate directory

2003-02-04 Thread R. Joseph Newton
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]

Re: move data into separate directory

2003-02-04 Thread Wiggins d'Anconia
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

Re: Move

2002-09-17 Thread Wiggins d'Anconia
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 >

Re: move

2001-12-31 Thread Roger C Haslock
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

RE: move

2001-12-31 Thread Kipp, James
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"); >

RE: move

2001-12-31 Thread McCollum, Frank
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]

RE: move

2001-12-31 Thread Kipp, James
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

RE: move

2001-12-31 Thread McCollum, Frank
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.

Re: move folder?

2001-06-20 Thread Me
> 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