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

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 multipl

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

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

move array elements to hash

2011-04-16 Thread mark baumeister
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 problems with my code. For one

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 wi

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 > files

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

2010-05-23 Thread Owen
subdirectory of B, named A). Not > crossing 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 follow

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

2010-05-23 Thread Chap Harrison
ine 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 and is a directory, and the source is not a directory, t

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

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-e

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

2008-12-14 Thread Chas. Owens
mes www::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 throwi

Web scraping...move on if it fails

2008-12-14 Thread hotkitty
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->ne

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); $

Web scraping...move on if it fails

2008-12-14 Thread hotkitty
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->ne

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 t

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 pain

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

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 instal

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?

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

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 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 perlwannabe
<> >> >> 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 >>

Re: rename and move multiple files

2005-10-24 Thread perlwannabe
<> >> 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

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 UNTESTED (sorry I don't use Windows): my

RE: rename and move multiple files

2005-10-23 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 It's hard to imagine that you spend multiple days looking at such an easy problem and

Re: rename and move multiple files

2005-10-23 Thread Elie De Brauwer
xt output4.txt .. . . 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 wi

Re: rename and move multiple files

2005-10-23 Thread John W. Krahn
> 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" files on the hard drive; 2) rename each "output.txt"

rename and move multiple files

2005-10-23 Thread perlwannabe
called "output.txt." I want to get everyone 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 .. . .

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

Re: RE : start http request and move on

2004-11-05 Thread JupiterHost.Net
Nice approach, I have learned today an easy to do it :) Though care should be taken to not fork many *uncontrolled* childs. Could you elaborate what uncontrolled children are specifically and what should be avoided? (In context of this thread of course not the little humans running around like c

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

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 m

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 A

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 persi

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 ':sta

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 try

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 s

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'; us

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 confi

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 L

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

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 ht

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.

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 submi

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: search and move 'expired files'

2004-06-11 Thread "Shu Hung (樹雄)"
: Subject: search 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

RE: search and move 'expired files'

2004-06-11 Thread Tim Johnson
search 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!!!

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:

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?

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

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

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

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 > &

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 th

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: Unix style to move and write two level up

2003-07-20 Thread Marcos . Rebelo
in::Bin directory where your script 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

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

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

Re: File move

2003-07-02 Thread Rob Dixon
r it will work, 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 r

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

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
you're opening ./logfile1 on handle INFILE. You have two choices: specify a path in your open: open 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. 'chd

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

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

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

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

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 wr

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 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 t

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 a

Re: Move

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

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

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

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
ROTECTED]] > 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 command in perl? I > know I can copy then unlink a file but I cant find a move (or

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 dum

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 questi

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 o

Re: Newbie: Move to next entry

2001-11-30 Thread Marc-André Landry
> 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 after the *, and print that to > screen? > > open(READFILE, $log_file) || > > print &q

  1   2   >