perl script problem

2019-10-13 Thread 刘东
Dear every one, I have written a perl script to get seprated files, but finally I every file included multiple files appeared before, for example, 1 file 2M, 2 file 5 M( included last one), 3 file 6 M (included last two ones), ... but I expected as 1 file 2M, 2 file 3M, 3 file 1 M, ... the script

Re: Why must I chomp a variable set in a script? (Problem Solved)

2007-06-18 Thread Jefferson Kirkland
-- Forwarded message -- From: Jefferson Kirkland <[EMAIL PROTECTED]> Date: Jun 18, 2007 10:45 AM Subject: Re: Why must I chomp a variable set in a script? (Problem Solved) To: Paul Lalli <[EMAIL PROTECTED]> Paul, On 6/18/07, Paul Lalli <[EMAIL PROTECTED]> wro

Re: export script problem

2006-05-29 Thread Gomez, Juan
...I agree perhaps I could make a small script that could do what he wants Is what you want right? -Original Message- From: "Chad Perrin" <[EMAIL PROTECTED]> Sent: 05/26/2006 11:45:39 AM To: "beginners@perl.org" Subject: Re: export script probl

Re: export script problem

2006-05-26 Thread Chad Perrin
On Fri, May 26, 2006 at 07:32:57AM -0500, Gomez, Juan wrote: > > do you realized this is a perl list? Maybe he wants to do it in Perl. Of course, it's pretty hard to tell from that email. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "A script is what you give the actors. A prog

RE: export script problem

2006-05-26 Thread Gomez, Juan
graeme do you realized this is a perl list? -Original Message- From: "Graeme McLaren" <[EMAIL PROTECTED]> Sent: 05/22/2006 2:09:12 PM To: "beginners@perl.org" Subject: export script problem Hi all, I need to export data from one dat

Re: [OT]Re: export script problem

2006-05-22 Thread Chad Perrin
On Mon, May 22, 2006 at 01:50:04PM -0600, Jeremy Vinding wrote: > Graeme McLaren wrote: > > > >Public Sub House() > > > >On Error Resume drink > > > >If Pint.empty = True Then > >Pint.refill > > Else > >Pint.drink > >End if > > > >stomach.add Pint >

[OT]Re: export script problem

2006-05-22 Thread Jeremy Vinding
Graeme McLaren wrote: Public Sub House() On Error Resume drink If Pint.empty = True Then Pint.refill Else Pint.drink End if stomach.add Pint MsgBox " I've had " & stomach.count & " Pints" MsgBox "VERY DRUNK" End Sub sub house {

export script problem

2006-05-22 Thread Graeme McLaren
Hi all, I need to export data from one database table to another. I also need to cleanse the data before inserting it to the other DB. There is only one unique column "login" and that is an string such as "login1". The rest are contact details, personal name / address and business name / addr

browser and/or script problem?

2005-05-07 Thread Graeme McLaren
Hi folks, I've got a strange problem where I'm getting the value "" on a form element and when I view the source on the page it contains values whic I have set in the module, at the moment they are undefined/empty string (browsing with firefox). On IE and Netscape for some reason the passwo

Re: script problem

2004-02-05 Thread R. Joseph Newton
Eternius wrote: > Leon wrote: > > Hi everyone, > > # another 50 or so lines of original post > > $smtp->quit; # snugged up tightly to the bottom of boilerplate: > > __ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free web site building tool. Try it! > > http:

Re: script problem

2004-02-03 Thread Eternius
Leon wrote: Hi everyone, I am created this script to send e-mails (see below). I get this error when I try to run it: Number found where operator expected at C:\scriptz\test\NEWSCR~1.CGI line 15, ne ar "The IP address for the interface that caused the event, or "0" (Might be a runaway multi-li

RE: script problem

2004-02-03 Thread Dan Muey
> Hi everyone, Howdy. > > I am created this script to send e-mails (see below). > I get this error when I try to run it: > use strict; use warnings; > Number found where operator expected at > C:\scriptz\test\NEWSCR~1.CGI line 15, ne ar "The IP address > for the interface that caused the

RE: script problem

2004-02-03 Thread Paul Kraus
> event, or "0" if unavailable is: $ARGV[8] Escape the \"0\" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PBML] script problem

2004-02-03 Thread Leon
I figured out my problem. Sorry for the spam. Thx again, Leon __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

script problem

2004-02-03 Thread Leon
Hi everyone, I am created this script to send e-mails (see below). I get this error when I try to run it: Number found where operator expected at C:\scriptz\test\NEWSCR~1.CGI line 15, ne ar "The IP address for the interface that caused the event, or "0" (Might be a runaway multi-line "" string

Re: Guestbook script problem

2002-11-27 Thread Ovid
--- Mystik Gotan <[EMAIL PROTECTED]> wrote: > Hi. > > I'm a young (14, dutch) Perl Programmer (or so however you may call, some > call me, some might don't ;)). Anyway, I'm getting a 500 error on my script. > I changed some things, like print content type in subs, and I put the HTML > form in t

Guestbook script problem

2002-11-27 Thread Mystik Gotan
Hi. I'm a young (14, dutch) Perl Programmer (or so however you may call, some call me, some might don't ;)). Anyway, I'm getting a 500 error on my script. I changed some things, like print content type in subs, and I put the HTML form in the script. But no changes for the ISE error. Hope you gu

Re: Simple useradd script problem

2002-09-03 Thread david
John W. Krahn wrote: >> change: >> >> @users = ; >> >> to: >> >> chop(@users = ); > > > You should use chomp unless you are stuck in Perl4. > agree. chomp is safer(and faster than chop). david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Simple useradd script problem

2002-09-03 Thread John W. Krahn
David wrote: > > Darren Wanner wrote: > > > Simple add user script: > > > > #!/usr/bin/perl > > > > open(FILE,"users.log"); > > @users=; > > foreach $users (@users) { > > `useradd -g 201 -d /userhome/$users -m $users`; > > } > > print "done.\n"; > > change: > > @users = ; > > to: > > chop(@u

Re: Simple useradd script problem

2002-09-03 Thread Dave Arnold
In message <[EMAIL PROTECTED]> Darren Wanner <[EMAIL PROTECTED]> wrote: > > I'm trying to write a simple script that takes a list of users from a file > and creates a user account for them, using the useradd script. The system > I'm doing this on is Solaris 8. When I run the script I

Re: Simple useradd script problem

2002-09-03 Thread John W. Krahn
Darren Wanner wrote: > > I'm trying to write a simple script that takes a list of users from a file > and creates a user account for them, using the useradd script. The system > I'm doing this on is Solaris 8. When I run the script I get the following > error. It seems as if it's not accepting

Re: Simple useradd script problem

2002-09-03 Thread david
Darren Wanner wrote: > Simple add user script: > > #!/usr/bin/perl > > open(FILE,"users.log"); > @users=; > foreach $users (@users) { > `useradd -g 201 -d /userhome/$users -m $users`; > } > print "done.\n"; change: @users = ; to: chop(@users = ); and try again. david -- To unsubscribe,

Simple useradd script problem

2002-09-03 Thread Darren Wanner
I'm trying to write a simple script that takes a list of users from a file and creates a user account for them, using the useradd script. The system I'm doing this on is Solaris 8. When I run the script I get the following error. It seems as if it's not accepting the variable in the command li

Re: CGI script problem

2002-08-19 Thread WyvernGod
In a message dated 8/19/2002 10:13:16 AM US Eastern Standard Time, [EMAIL PROTECTED] writes: > http://localhost/cgi-bin/printenv.pl > oh this is a stupid problem i had aswell... an easy solution is to rename the ..pl as .cgi and then it worked fine for me.. I know.. sounds dumb but IE see's

RE: CGI script problem

2002-08-19 Thread Bob Showalter
> -Original Message- > From: Matt Wetherill [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 19, 2002 11:11 AM > To: Perl beginners > Subject: CGI script problem > > > Hi list, > > I'm just trying to get started with cgi (w2k, Apache 2.0.40), > a

[ADMIN - REDIRECT] Re: CGI script problem

2002-08-19 Thread Kevin Meltzer
This message is being redirected to the beginners-cgi list. Please answer on that list, and to the original poster. Thanks. Cheers, Kevin On Mon, Aug 19, 2002 at 04:11:14PM +0100, Matt Wetherill ([EMAIL PROTECTED]) said something similar to: > Hi list, > > I'm just trying to get started with c

CGI script problem

2002-08-19 Thread Matt Wetherill
Hi list, I'm just trying to get started with cgi (w2k, Apache 2.0.40), and have been using the sample script "printenv.pl" which is included with Apache: #!c:/Perl/bin/Perl.exe ## ## printenv -- demo CGI program which just prints its environment ## print "Content-type: text/plain\n\n"; foreach