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 STDIN) 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

move array elements to hash

2011-04-16 Thread mark baumeister
Hi, I am trying to move array elements (populated from the STDIN) 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 with my code. For one

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 =STDIN) {

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 theSTDIN) 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

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 theSTDIN) 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

How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Chap Harrison
directories the same way you copy files; others have recommended File::Copy as a platform-independent copy/move command; and the File::Copy docs contain the following statement: If the destination already exists and is a directory, and the source is not a directory, then the source file will be renamed

Re: How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Owen
filesystems or devices. Various online sources have said you copy directories the same way you copy files; others have recommended File::Copy as a platform-independent copy/move command; and the File::Copy docs contain the following statement: If the destination already exists

Re: How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Shlomi Fish
Hi Chap, On Monday 24 May 2010 04:09:52 Chap Harrison wrote: Hi, I can't believe I'm having such a hard time with this. I just want a platform-independent way of copying a directory 'A' and its contents into another directory 'B' (as a subdirectory of B, named A). Not crossing

Re: How to move a directory to another location on the same filesystem/volume?

2010-05-23 Thread Chap Harrison
Whoof! Thanks, Shlomi - I guess Copy-Recursive has what I need. I had no idea it would be such a can of worms. Chap On May 23, 2010, at 10:57 PM, Shlomi Fish wrote: Hi Chap, On Monday 24 May 2010 04:09:52 Chap Harrison wrote: Hi, I can't believe I'm having such a hard time with this.

Move to more recent gcc version.. what to expect

2009-11-02 Thread Harry Putnam
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 way of problems. Would I need to re-emerge just

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

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

2009-11-02 Thread Harry Putnam
Jeremiah Foster jerem...@jeremiahfoster.com 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

Web scraping...move on if it fails

2008-12-14 Thread hotkitty
, or for whatever reason. HOw do I get it so that instead of dying right then and there it will just ignore it and move onto the next page? partial code below: while ( $ref = $st-fetchrow_arrayref() ) { print Retrieving news stories from $page\n; my $mech=WWW::Mechanize-new(autocheck = 1

Re: Web scraping...move on if it fails

2008-12-14 Thread Filip van der Meeren
do I get it so that instead of dying right then and there it will just ignore it and move onto the next page? partial code below: while ( $ref = $st-fetchrow_arrayref() ) { print Retrieving news stories from $page\n; my $mech=WWW::Mechanize-new(autocheck = 1); $mech-get($page) or warn

Web scraping...move on if it fails

2008-12-14 Thread hotkitty
, or for whatever reason. HOw do I get it so that instead of dying right then and there it will just ignore it and move onto the next page? partial code below: while ( $ref = $st-fetchrow_arrayref() ) { print Retrieving news stories from $page\n; my $mech=WWW::Mechanize-new(autocheck = 1

Re: Web scraping...move on if it fails

2008-12-14 Thread Chas. Owens
::mechanize will fail to get the website because the server is busy, or for whatever reason. HOw do I get it so that instead of dying right then and there it will just ignore it and move onto the next page? snip You can use a block eval* to catch the die the module is throwing. This is similar

RE: Build module on one box and move to another box?

2007-06-28 Thread RICHARD FERNANDEZ
Can this be done? Can I compile a module on one box and somehow install the code on another? Might this be as simple as copying over the contents of the directories in @INC? As it turns out, this was fairly easy to do. I followed the advice from Chas Owens who suggested that I build them

Re: Build module on one box and move to another box?

2007-06-27 Thread Kai von Thadden
RICHARD FERNANDEZ wrote: Can this be done? Can I compile a module on one box and somehow install the code on another? Might this be as simple as copying over the contents of the directories in @INC? Thanks Tom and Chas for the responses. It sounds like this is do-able, but not w/o some

Build module on one box and move to another box?

2007-06-26 Thread RICHARD FERNANDEZ
Hi folks, Having worked around my CPAN mirror problems by abandoning the FTP URL and going with an HTTP connection instead (Thanks for the suggestion David :), I'm now faced with the fact that the box I'm on does not have a compiler installed. They want me to install various modules (DBI.pm and

Re: Build module on one box and move to another box?

2007-06-26 Thread Tom Phoenix
On 6/26/07, RICHARD FERNANDEZ [EMAIL PROTECTED] wrote: the box I'm on does not have a compiler installed. They want me to install various modules (DBI.pm and others) without installing a compiler... Can this be done? Can I compile a module on one box and somehow install the code on another?

Re: Build module on one box and move to another box?

2007-06-26 Thread Chas Owens
On 6/26/07, RICHARD FERNANDEZ [EMAIL PROTECTED] wrote: Hi folks, Having worked around my CPAN mirror problems by abandoning the FTP URL and going with an HTTP connection instead (Thanks for the suggestion David :), I'm now faced with the fact that the box I'm on does not have a compiler

RE: Build module on one box and move to another box?

2007-06-26 Thread RICHARD FERNANDEZ
Can this be done? Can I compile a module on one box and somehow install the code on another? Might this be as simple as copying over the contents of the directories in @INC? Thanks Tom and Chas for the responses. It sounds like this is do-able, but not w/o some pain. Their desire to have

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 - calm guy,

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 Trash folder,

Re: MOVE ON ALREADY!!!

2006-07-13 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 ALREADY

RE: MOVE ON ALREADY!!!

2006-07-13 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

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

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 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. Shawn H. Corey -

MOVE ON ALREADY!!!

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

Re: rename and move multiple files

2005-10-24 Thread John W. Krahn
, rename, move. 1) locate all output.txt files on the hard drive; 2) rename each output.txt to something unique, and 3) move each renamed file from its original location to a single directory. I have tried a few ways with no success. Thanks for the help. UNTESTED (sorry I don't use Windows

RE: rename and move multiple files

2005-10-24 Thread Timothy Johnson
] Sent: Sun 10/23/2005 11:35 PM To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: rename and move multiple files snip It's hard to imagine that you spend multiple days looking at such an easy problem

RE: rename and move multiple files

2005-10-24 Thread Timothy Johnson
- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Sun 10/23/2005 11:19 PM To: Perl Beginners Cc: Subject: Re: rename and move multiple files snip UNTESTED (sorry I don't use Windows): my

Re: rename and move multiple files

2005-10-24 Thread perlwannabe
SNIP So I suppose I want to do a locate, rename, move. 1) locate all output.txt files on the hard drive; 2) rename each output.txt to something unique, and 3) move each renamed file from its original location to a single directory. I have tried a few ways with no success. Thanks

Re: rename and move multiple files

2005-10-24 Thread perlwannabe
SNIP So I suppose I want to do a locate, rename, move. 1) locate all output.txt files on the hard drive; 2) rename each output.txt to something unique, and 3) move each renamed file from its original location to a single directory. I have tried a few ways with no success. Thanks

rename and move multiple files

2005-10-23 Thread perlwannabe
of those output.txt and copy it to a single directory (call it c:\renoutput) and each output will have a unique name. So when I do a dir of C:\RENOUTPUT is looks like: output1.txt output2.txt output3.txt output4.txt .. . . So I suppose I want to do a locate, rename, move. 1) locate all output.txt

move applications from traditional CGI to mod_perl

2005-09-23 Thread Jeff Pan
hi,everyone, I want to move my web applications which written by traditional CGI to mod_perl.Is there any risk or difficulty here? The applications are something about webmail.Which module under mod_perl is suited for me? Any advise or reference to me should be appreciated.TKS. -- Jeff Pan

RE: start http request and move on

2004-11-05 Thread NYIMI Jose \(BMB\)
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 10:23 PM To: [EMAIL PROTECTED] Subject: start http request and move on Hey group, Not sure how I'd go about doing a url (via LWP probably) but not wait for it to return

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
Randal has written an excellent column and shown how to deal with such needs. Have a look to http://www.stonehenge.com/merlyn/LinuxMag/col39.html Thanks Jose, and Randal too :), very close indeed the only difference is I don't want the user to wait at all, just submit the form, they see the

RE: start http request and move on

2004-11-05 Thread Bob Showalter
JupiterHost.Net wrote: I don't want the user to wait at all, just submit the form, they see the confirmation and close their browser and the fork() finished in its own sweet time on the server. Use something like the following: #!/usr/bin/perl use strict; use CGI ':standard'; use

RE: start http request and move on

2004-11-05 Thread Murphy, Ged (Bolton)
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: 05 November 2004 15:14 To: [EMAIL PROTECTED] Subject: Re: start http request and move on Thanks Jose, and Randal too :), very close indeed the only difference is I don't want the user to wait at all, just submit

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
A very shoddy way of doing it, but you could put what you want to do in another script, call system() and place it in the background so you original script doesn't wait for it to return. . system perl script.pl any arguments ; . I assume this would work, but am not 100% sure without

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
Bob Showalter wrote: JupiterHost.Net wrote: I don't want the user to wait at all, just submit the form, they see the confirmation and close their browser and the fork() finished in its own sweet time on the server. Use something like the following: #!/usr/bin/perl use strict; use CGI

RE: start http request and move on

2004-11-05 Thread Bob Showalter
JupiterHost.Net wrote: Bob Showalter wrote: ... Use something like the following: ... Thanks Bob, That works great! Now the next step is to play with that in a peristent environment without killing the persistent process with the exit() Perhapst the system + will do better in a persistent

Re: start http request and move on

2004-11-05 Thread Gunnar Hjalmarsson
Bob Showalter wrote: If you're running under Apache::Registry though, calling exit is OK. If I have understood it correctly, it's not OK if Perl is older than 5.6. Therefore I'm using this sub: sub myexit { if ($ENV{MOD_PERL}) { if ($] 5.006) { require

Re: start http request and move on

2004-11-05 Thread JupiterHost.Net
You don't need to call exit if you just put the other stuff in an else {} block so the parent doesn't execute it. If you're running under Apache::Registry though, calling exit is OK. Perfect, the else {} works great! I'll need to read up on fork and all that so I can really get it :) Thanks so

RE : start http request and move on

2004-11-05 Thread Jose Nyimi
-Message d'origine- De : Bob Showalter [mailto:[EMAIL PROTECTED] Envoyé : vendredi 5 novembre 2004 19:40 À : 'JupiterHost.Net'; [EMAIL PROTECTED] Objet : RE: start http request and move on JupiterHost.Net wrote: Bob Showalter wrote: ... Use something like the following

RE: RE : start http request and move on

2004-11-05 Thread Larsen, Errin M HMMA/IT
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 3:08 PM To: [EMAIL PROTECTED] Cc: Jose Nyimi Subject: Re: RE : start http request and move on Nice approach, I have learned today an easy to do it :) Though care should

Re: RE : start http request and move on

2004-11-05 Thread JupiterHost.Net
Hi, Hello :) I've been lurking on this thread for a bit, and now that you've jumped to children and fork and related topics I'll chime in! I found a lot of useful information about this sort of thing in perldoc perlipc. Check out the stuff about Daemons and the REAPER subroutine in that doc.

RE: RE : start http request and move on

2004-11-05 Thread Christopher Maujean
On Fri, 2004-11-05 at 13:39, Larsen, Errin M HMMA/IT wrote: -Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 3:08 PM To: [EMAIL PROTECTED] Cc: Jose Nyimi Subject: Re: RE : start http request and move on Nice

Re: start http request and move on

2004-11-04 Thread JupiterHost.Net
say, it takes the entire http session 60 seconds from start to finish to submit the url, the script to run and return the results I want: print Starting...\n; nowaiturl($url?foo=bar); print $url has been submitted, in appx 60 seconds it will finish; to run in like it had been (obviously it'll

start http request and move on

2004-11-03 Thread JupiterHost.Net
Hey group, Not sure how I'd go about doing a url (via LWP probably) but not wait for it to return. print Starting...\n; nowaiturl($url?foo=bar); print $url has been submitted. When it finishes running you'll get an email. Have a super day\n; # or whatever :) The idea is to be able to submit

RE: start http request and move on

2004-11-03 Thread Moon, John
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 4:23 PM To: [EMAIL PROTECTED] Subject: start http request and move on Hey group, Not sure how I'd go about doing a url (via LWP probably) but not wait for it to return. print

Re: start http request and move on

2004-11-03 Thread JupiterHost.Net
be the best way? Or what is that even called so I can look around for it? [jwm] Don't use LWP but in my CGI scripts I set $| to nonzero ... to do what you want... Thanks, I'm not worried about flushing output, I want to submit the url and move on like so: say, it takes the entire http session

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 = lyidia.pl;

search and move 'expired files'

2004-06-11 Thread Shu Hung ()
Hello all, I want a script to move all 'expired files' to a folder. So I wrote the script below. However, a problem came out: the find function run everything in the address, including the entire folders structure!!! I want to move those files and files only. What can I do? (*note: the OS

RE: search and move 'expired files'

2004-06-11 Thread Tim Johnson
You can use the -d file test to check if the file is a directory before moving it. unless(-d $whatever_file){ do whatever... -Original Message- From: Shu Hung () [mailto:[EMAIL PROTECTED] Sent: Fri 6/11/2004 3:50 AM To: Perl Beginner Mail Group Cc: Subject: search and move

Re: search and move 'expired files'

2004-06-11 Thread Shu Hung ()
and move 'expired files' Hello all, I want a script to move all 'expired files' to a folder. So I wrote the script below. However, a problem came out: the find function run everything in the address, including the entire folders structure

save output as text file, move file to another location

2004-06-09 Thread Gregg O'Donnell
Greetings all! I have data that is output from a form. How do I take this data, save it as a .txt file, and place this .txt file in another location (a different folder, not cgi-bin) on my server? Also, each time a .txt file is created, it should overwrite the previous file ( I assume this is

RE: save output as text file, move file to another location

2004-06-09 Thread Bob Showalter
Gregg O'Donnell wrote: Greetings all! I have data that is output from a form. OK. I assume you mean an HTML form and your script is a CGI script. How do I take this data, save it as a .txt file, and place this .txt file in another location (a different folder, not cgi-bin) on my server?

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

2004-05-19 Thread carl
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 :CONSTANTS

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: snip 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

Move a file

2003-12-12 Thread neill . taylor
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 application is still trying

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

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 directory whilst

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 that is still being

RE: Move a file

2003-12-12 Thread Tom Kinzer
, 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 problem I think I might have is that the script may try

RE: Unix style to move and write two level up

2003-07-21 Thread Marcos . Rebelo
is, Marcos -Original Message- From: Voodoo Raja [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 7:15 AM To: [EMAIL PROTECTED] Subject: Unix style to move and write two level up Hi all I am wandering if there is a way to specify my cgi script to=20 write a file in a directory which

Unix style to move and write two level up

2003-07-20 Thread Voodoo Raja
Hi all I am wandering if there is a way to specify my cgi script to=20 write a file in a directory which is two level up.. curently I am able to write to images folder which is located in My = /cgi-bin/images. instead I would like to move two level up and write to the Root where = the cgi-bin

File move

2003-07-02 Thread Akens, Anthony
Just want to check and make sure this snippet of code will do what I think it will. Trying to copy all files from $reportsdir to $oldreportsdir my $reportsdir = '/usr2/reports'; my $oldreportsdir = '/usr2/oldreports'; # Move everything from the report directory to the old report directory

Re: File move

2003-07-02 Thread Rob Dixon
, but we are not your computer and it may not agree with us. use strict; # always use warnings; # usually my $reportsdir = '/usr2/reports'; my $oldreportsdir = '/usr2/oldreports'; # Move everything from the report directory to the old report directory opendir(DIR, $reportsdir) or die can't

RE: File move

2003-07-02 Thread Akens, Anthony
Actually Rob your tips are very handy... I have a nasty habit of posting only part of the code when asking questions here, gotta break that habit. use strict; # always use warnings; # usually Doing those :) - What's this 'move' thing? Have you sneakily added 'use File::Copy without

Re: move data into separate directory

2003-02-06 Thread Rob Dixon
INFILE, 'data/'.$input; or move your current working directory to 'data', which is your best bet if /all/ of your data files (both input and output) are there. 'chdir' will do this for you: #!/usr/bin/perl -w use strict; use Text::CSV; my $ip=$ARGV[0]; my $csv=Text::CSV-new(); chdir 'data

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 Cwd;

Re: move data into separate directory

2003-02-05 Thread Jose Malacara
] To: Jose Malacara [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 8:11 PM Subject: Re: move data into separate directory 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

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 is located

move data into separate directory

2003-02-04 Thread Jose Malacara
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 to be able to move my csv files into a separate data

Re: move data into separate directory

2003-02-04 Thread Wiggins d'Anconia
like to be able to move my csv files into a separate data directory, but I seem to be having problems mapping the rest of the script to the new directory. Is there any way to make my input look something like this: my $input=data/$file or is there a better way to handle this? Thanks, Jose Any help

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: file locking before move?

2002-11-17 Thread Ramprasad A Padmanabhan
All locking modules use advisory locking hence it is not possible to ensure that the file is not being touched unless you build the intelligence into all possible scripts Rory O'Connor wrote: I am using File::Copy to move a file from one directory to another. However, I do not want to move

file locking before move?

2002-11-16 Thread Rory O'Connor
I am using File::Copy to move a file from one directory to another. However, I do not want to move the file if it is being written to (by another program). Do i need to lock the file before moving it or does File::Copy by nature wait until a file is not being written to before moving? I

Re: file locking before move?

2002-11-16 Thread smoot
Rory O'Connor [EMAIL PROTECTED] said: I am using File::Copy to move a file from one directory to another. However, I do not want to move the file if it is being written to (by another program). Do i need to lock the file before moving it or does File::Copy by nature wait until a file

Preferred way to move and compress a file

2002-09-26 Thread Matt Simonsen
I need to move several files and compress them - what's the preferred way to do this? I don't think Zlib::Compress is what I want, it seems more geared towards dealing with small streams... although I suppose I could look over each line and write that out. The files to compress are all several

Re: Preferred way to move and compress a file

2002-09-26 Thread George Schlossnagle
Matt Simonsen wrote: I need to move several files and compress them - what's the preferred way to do this? I don't think Zlib::Compress is what I want, it seems more geared towards dealing with small streams... although I suppose I could look over each line and write that out. The files

RE: Preferred way to move and compress a file

2002-09-26 Thread Timothy Johnson
There is also an Archive::Zip module that works quite well. -Original Message- From: Matt Simonsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 3:02 PM To: [EMAIL PROTECTED] Subject: Preferred way to move and compress a file I need to move several files and compress

Re: Preferred way to move and compress a file

2002-09-26 Thread david
Matt Simonsen wrote: I need to move several files and compress them - what's the preferred way to do this? I don't think Zlib::Compress is what I want, it seems more geared towards dealing with small streams... although I suppose I could look over each line and write that out. The files

Re: Preferred way to move and compress a file

2002-09-26 Thread Michael Fowler
On Thu, Sep 26, 2002 at 03:02:04PM -0700, Matt Simonsen wrote: I need to move several files Moving files can be accomplish with rename, perldoc -f rename. and compress them - what's the preferred way to do this? It depends on your requirements, there is no single preferred method. Compress

Move

2002-09-17 Thread Shishir K. Singh
Is there a keyword for moving a set of files from one dir to another eg like doing move (*.log , /tmp/) without the use of glob or individual file looping. Thanks Shishir -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Move

2002-09-17 Thread Wiggins d'Anconia
move (*.log , /tmp/) without the use of glob or individual file looping. Thanks Shishir -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

move

2001-12-31 Thread Michael McQuarrie
I'm sure this is a dumb question. It seems like one anyways. Is there a move command in perl? I know I can copy then unlink a file but I cant find a move (or similar) command. -Michael __ Do You Yahoo!? Send your FREE holiday greetings online

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] Subject: move

RE: move

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

Re All: move

2001-12-31 Thread Michael McQuarrie
Thanks for all your help. --- Michael McQuarrie [EMAIL PROTECTED] wrote: I'm sure this is a dumb question. It seems like one anyways. Is there a move command in perl? I know I can copy then unlink a file but I cant find a move (or similar) command. -Michael

Newbie: Move to next entry

2001-11-29 Thread Mark Smith
Hi all I am try to get my first guestbook to work. I have got it writing to a file, and retrieving,..but only the first entry in the logfile. I have delimited the fields in the logfile by ,..and delimited the last field for each entry with a *. How do I get it to move to the next entry

Everyone please move on.... RE: Sh*t!!!!!!!!

2001-10-11 Thread padula, domenic
How about we just stop commenting on this. Most of us would like to move on get back to Perl questions. -Original Message- From: Chuck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 10, 2001 20:41 To: Inspirational Michael; Kipp, James; [EMAIL PROTECTED] Subject: Re: Shit

FW: Everyone please move on.... RE: Sh*t!!!!!!!!

2001-10-11 Thread padula, domenic
Perhaps but WE can't help you. It should be taken offline with an administrator for the courtesy of others on this list. -Original Message- From: Chris Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:18 To: padula, domenic Subject: Re: Everyone please move

RE: Everyone please move on.... RE: Sh*t!!!!!!!!

2001-10-11 Thread aurillo, gabriel
. Point out the mistakes -- without being belligerent. Otherwise, don't say you're being helpful. Just go away... -Original Message- From: padula, domenic Sent: Thursday, October 11, 2001 12:58 PM To: '[EMAIL PROTECTED]' Subject: FW: Everyone please move on RE: Sh*t Perhaps but WE

Re: Everyone please move on

2001-10-11 Thread sneex
$thread = profanity reeks of a basic lack of education; print this thread just , (split(/\s/, $thread))[1]; __END__ -Sx- :/ On Thursday, October 11, 2001, at 01:26 PM, aurillo, gabriel wrote: Whether the unsubscribe script works or not, the real issue is whether one can articulate one's

  1   2   >