Re: Please help

2002-07-30 Thread Ramprasad A Padmanabhan
the outputs of a program can be to STDOUT or STDERR ( and also to files it opens internally ) On unix like systems STDOUT is known by &1 STDERR by &2 The output of a program on STDOUT goes wherever 1 is directed to similarly for STDERR 2 If U want to redirect STDERR to STDOUT use 2>&1 eg. pr

Re: Please help

2002-07-30 Thread Sudarshan Raghavan
On Mon, 29 Jul 2002, Ning luo wrote: > > Hi Sir > > I have a perl script using system function, like > system("perl goup 1>basicName.scan 2>basicName.err"); > > goup is another perl script, what I want to do is executing goup, then print > the results to the file basicName.scan, if it abo

RE: Please help

2002-10-01 Thread Timothy Johnson
There is a cgi list for cgi questions. You might be able to get better answers from there. BTW, you might want to use a more specific subject as well. -Original Message- From: Janfek Esquivel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 7:24 AM To: [EMAIL PROTECTED] Subje

Re: Please help!

2004-04-19 Thread Wiggins d Anconia
Please use a better subject line > I really need help with that system call thing! Here it is again: > Patience is a virtue... > Hi List, > > I have code that looks like this: > > > # >#:# > #:#:#:#:# > #:#:#:#:#:# What's with the excessive comments? > my $funk = '/home/jdd/s

Re: Please help!

2004-04-20 Thread Jason Dusek
Wiggins d Anconia wrote: Backticks, qx(), but then it is usually discouraged, why call a program written in the same language by shelling out? I think it's silly too, but I honestly don't know any better. So I looked up perlipc, and it's given me alot to think about but it hasn't exactly narrow

RE: Please help!

2004-04-20 Thread Bob Showalter
Jason Dusek wrote: > I have code that looks like this: > ... > my $funk = '/home/jdd/sbin/idlwave2outline.pl'; > my $jam = '/home/jdd/sbin/outline2html.pl -p -t'; > my $web_dir = '/home/jdd/www'; > ... > sub makedocs { > $code = $File::Find::name; > $name = $web_dir.'/'.$_; > system(

Re: Please help!

2003-11-13 Thread James Edward Gray II
On Nov 13, 2003, at 1:14 PM, [EMAIL PROTECTED] wrote: Hi- I'm an absolute beginner to Perl. I need to write a script that will take tables from a SQL server database, somehow get them into HTML format, and automatically generate an email to a list of users containing the info I just converted

Re: Please help!

2003-11-13 Thread Gabino Travassos
> I'm an absolute beginner to Perl. I need to write a script that will take tables from a SQL server database, somehow get them into HTML format, and automatically generate an email to a list of users containing the info I just converted into HTML. All I can seem to find online is generating autom

RE: Please Help

2002-04-30 Thread David Gray
> I am a student an I'm new to Perl. For a university > assignment I need to read the contents of a text file in an > array. I am using Windows. The code I am writing is: > > $file = "/test.txt"; > open (INFO, "$file"); Always check to make sure your filehandle was actually opened: open (INFO

Re: Please Help

2002-04-30 Thread Tanton Gibbs
More than likely 1.) the file doesn't exist 2.) you don't have read permissions You might have meant "./test.txt" which will read the file from your current directory instead of the root directory. - Original Message - From: "Josef E. Galea" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sen

Re: Please Help

2002-04-30 Thread Josef E. Galea
d Gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "'Josef E. Galea'" <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 9:23 PM Subject: RE: Please Help > > I am a student an I'm new to Perl. For a university > > assignment I need t

Re: Please Help

2002-04-30 Thread Dave K
I am using Windows. $file = 'D:\\test.txt'; should help out as will the good advice about checking to see if the open succeeds "Josef E. Galea" <[EMAIL PROTECTED]> wrote in message 002201c1f07d$15712780$b9669ec3@josvio">news:002201c1f07d$15712780$b9669ec3@josvio... Hi I am a student an I'm new

Re: Please Help

2002-04-30 Thread Kojo Idrissa
Are you absolutely sure that the file is in the root directory of your D drive? Most Windows machines are setup with "C" as the primary drive. Do you have two hard drives, or a hard drive with two partitions? At 09:37 PM 4/30/2002 +0200, Josef E. Galea wrote: >Thanks for your reply Dave. >Now

Re: Please Help

2002-04-30 Thread Tim Musson
Hey Josef, My MUA believes you used Microsoft Outlook Express 5.50.4133.2400 to write the following on Tuesday, April 30, 2002 at 3:37:35 PM. JEG> Thanks for your reply Dave. Now I am getting 'No such file or JEG> directory' when i am sure that the file exists JEG> I changed line 1 to: JEG> $fil

Re: Please Help

2002-04-30 Thread Roger
Around Tue,Apr 30 2002, at 09:37, Josef E. Galea, wrote: > Thanks for your reply Dave. > Now I am getting 'No such file or directory' when i am sure that the file > exists > > I changed line 1 to: > $file = "D:/test.txt"; try $file="D:\\test.txt"; -- Roger -

Re: Please Help

2002-04-30 Thread Harry Jackson
> > From: Josef E. Galea[SMTP:[EMAIL PROTECTED]] > > To: [EMAIL PROTECTED] > Hi > I am a student an I'm new to Perl. For a university assignment I need > to > read the contents of a text file in an array. I am using Windows. The > code I am writing is: > > $file = "/test.txt"; > o

Re: Please Help

2002-04-30 Thread Jeff 'japhy' Pinyan
On Apr 30, Harry Jackson said: >#!perl ># ># These are a must of course. >use strict; >use warnings; > ># Note I am trying to avoid flames ># by including all the usaul ># warnings stricts etc > ># >my $CurrentLine; > ># ># Please enter your own pathname ># >open (INFILE, "c:\\hello.txt") || d

RE: PLEASE HELP

2005-08-27 Thread Charles K. Clarkson
Angie wrote: : I am sorry to bother the list folks with this, but I : am trying to get off this list. I have sent SEVERAL : unsubscribe from this list to : [EMAIL PROTECTED] and every other alias : provided in the welcome e-mail. No dice! Nothing! I : even wrote an e

Re: PLEASE HELP

2005-08-27 Thread Kris Van Bruwaene
Angie wrote: Hi Kris, Hi Angie I'm afraid I can't help you any further. I just happened to unsubscribe yesterday and it worked straight away, with a confirmation to answer and a final confirmation that I was unsubscribed. >Thanks for the e-mail. Yes, I wrote from this addy, the one I s

RE: Please help me!

2001-06-14 Thread John Edwards
Suggestions. Don't use a variable called $newvar, call it $form_input or $phone_number or somthing. Make it descriptive of the value it holds, either the source of the data or the expected content. It'll make life easier in the long run. Use a module to inferface with Sendmail. Let it do the har

Re: Please help !! Socket

2003-07-17 Thread Ramprasad
Pandey Rajeev-A19514 wrote: Hi, I want to create differnent Socket Handles in a function and the function creates the created Socket Handle.. my $sock = gensym(); I am getting the same instance of Handle "S". Please some one tell me how to create different instances of sockets in perl. Regards

Re: Please Help me

2009-07-24 Thread Steve Bertrand
Umar Draz wrote: > I want to print all mobile from above string. Mobile code always start > from 03. and not more than 4 digits. > So here I have use this regular expression. > while($str =~ /(\b(0([3](\d\d)))+[-]+\d{7}|\ b(0([3](\d\d)))+\d{7})/g){   >      print "Your Mobile No. is " . $1 . "\n

Re: Please Help Me!

2009-07-25 Thread Shawn H. Corey
Umar Draz wrote: As you can see its not works because there is no space after the word is So would you please help me how to solve this. Change the word boundary, \b, to a not-digit, \D. -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and comm

Re: Please Help Me!

2009-07-25 Thread Chas. Owens
On Sat, Jul 25, 2009 at 05:48, Shawn H. Corey wrote: > Umar Draz wrote: >> >> As you can see its not works because there is no space after the word is >> So would you please help me how to solve this. >> > > Change the word boundary, \b, to a not-digit, \D. snip That will cause "0300-1234567" to f

Re: Please help... struggling beginner.

2003-06-23 Thread Tassilo von Parseval
On Mon, Jun 23, 2003 at 10:43:07AM +0200 Denham Eva wrote: > I am very much a novice at perl and probably bitten off more than I can chew > here. > I have a file, which is a dump of a database - so it is a fixed file format. > The problem is that I am struggling to manipulate it correctly. I have

Re: Please help... struggling beginner.

2003-06-23 Thread Paul Johnson
Denham Eva said: > Hello, > > I am very much a novice at perl and probably bitten off more than I can > chew > here. > I have a file, which is a dump of a database - so it is a fixed file > format. > The problem is that I am struggling to manipulate it correctly. I have > been > trying for two day

Re: please help !! pattern match

2003-09-05 Thread Rob Anderson
"Pandey Rajeev-A19514" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi , Hello > > I need some help me to extract a pattern. The delimiters is a pair of "abcd" and "efgh". Can some one help me with an efficient use of Greedy and non greedy matches, look ahead and lookbehind feat

Re: Please help me! Thanks.

2003-12-15 Thread pagoda
now, a stupid solution is: for (my $value = -1000; $value <= 1000; $value += 100) { print $value/1000, "\n"; } hehe, - Original Message - From: "pagoda" <[EMAIL PROTECTED]> To: "begin begin" <[EMAIL PROTECTED]> Sent: Tuesday, December 16, 2003 1:54 PM Subject: Please help me!

Re: Please help me! Thanks.

2003-12-15 Thread Hacksaw
> now, a stupid solution is: > > for (my $value = -1000; $value <= 1000; $value += 100) { > print $value/1000, "\n"; > } > > hehe, > Sadly, it's not as stupid as you think. Unless I misunderstand things, what you are seeing here is a problem called IEEE 754 floating point. I'm sure th

Re: Please help me! Thanks.

2003-12-15 Thread Paul Johnson
On Tue, Dec 16, 2003 at 02:25:42PM +0800, pagoda wrote: > now, a stupid solution is: > > for (my $value = -1000; $value <= 1000; $value += 100) { > print $value/1000, "\n"; > } > > hehe, Not so stupid, really. If you can keep most of your maths confined to integers you will have fewer

RE: Please help me! Thanks.

2003-12-15 Thread Charles K. Clarkson
pagoda <[EMAIL PROTECTED]> wrote: : Take a look at the first question in perlfaq4: Why am I getting long decimals (eg, 19.94999) instead of the numbers I should be getting (eg, 19.95)? HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists

Re: Please help me! Thanks.

2003-12-16 Thread Mr M senthil kumar
On Tue, 16 Dec 2003, pagoda wrote: > > for (my $value = -1; $value <= 1; $value += 0.1) { > print "$value\n"; > } Hi, I don't know if it might be helpful, but the following code works better: for ($value = -1; $value <= 1; $value += 0.1) { printf ("%.1f\n",$value); } This p

Re: Please help me! Thanks.

2003-12-16 Thread R. Joseph Newton
Paul Johnson wrote: > On Tue, Dec 16, 2003 at 02:25:42PM +0800, pagoda wrote: > > > now, a stupid solution is: > > > > for (my $value = -1000; $value <= 1000; $value += 100) { > > print $value/1000, "\n"; > > } > > > > hehe, > > Not so stupid, really. If you can keep most of your maths co

Re: Please help me! Thanks.

2003-12-16 Thread Rob Dixon
Hacksaw wrote: > > > now, a stupid solution is: > > > > for (my $value = -1000; $value <= 1000; $value += 100) { > > print $value/1000, "\n"; > > } > > > > hehe, > > > > Sadly, it's not as stupid as you think. Unless I misunderstand things, what > you are seeing here is a problem called IEE

Re: Please help me! Thanks.

2003-12-16 Thread drieux
On Dec 16, 2003, at 7:16 AM, Rob Dixon wrote: [..] Rob use strict; use warnings; use Math::Fraction; for (my $value = frac -1; $value <= 1; $value += 0.1) { print $value->decimal, "\n"; } [..] neat solution, minor problem is that Math::Fraction is not a 'default' module yet.

Re: Please help me! Thanks.

2003-12-16 Thread R. Joseph Newton
Rob Dixon wrote: > Hacksaw wrote: > > > > > now, a stupid solution is: > > > > > > for (my $value = -1000; $value <= 1000; $value += 100) { > > > print $value/1000, "\n"; > > > } > > > > > > hehe, > > > > > > > Sadly, it's not as stupid as you think. Unless I misunderstand things, what > >

Re: Please help me! Thanks.

2003-12-16 Thread Rob Dixon
R. Joseph Newton wrote: > > Rob Dixon wrote: > > > > It's also worth pointing out here that rational values are almost always what is > > wanted in this sort of situation. > > > > The (very nice indeed) Math::Fraction module lets you do just this. The only > > changes to the code are to initialise

Re: Please help me! Thanks.

2003-12-17 Thread Randal L. Schwartz
> "Drieux" == Drieux <[EMAIL PROTECTED]> writes: Drieux> neat solution, minor problem is that Math::Fraction Drieux> is not a 'default' module yet. And if that's a problem for you, you aren't using Perl properly yet. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777

Re: Please help me! Thanks.

2003-12-17 Thread drieux
On Dec 17, 2003, at 9:36 AM, Randal L. Schwartz wrote: "Drieux" == Drieux <[EMAIL PROTECTED]> writes: Drieux> neat solution, minor problem is that Math::Fraction Drieux> is not a 'default' module yet. And if that's a problem for you, you aren't using Perl properly yet. could well be. help clarify

Re: please help with fork

2001-10-27 Thread Maxim Berlin
Hello Maxim, Saturday, October 27, 2001, Maxim Goncharov <[EMAIL PROTECTED]> wrote: MG> I need help with understanding what is happening when I fork a MG> process.Here is actual code: you did not 'fork' process. 'fork' is very special function, see perldoc -f fork man fork for nore information.

RE: please help with fork

2001-10-29 Thread Bob Showalter
> -Original Message- > From: Maxim Goncharov [mailto:[EMAIL PROTECTED]] > Sent: Saturday, October 27, 2001 1:30 PM > To: [EMAIL PROTECTED] > Subject: please help with fork > > > HI everyone, > > I need help with understanding what is happening when I fork a > process.Here is actual co

Re: please help out guys

2001-11-21 Thread nafiseh saberi
note that ...all of people in this group are not guys. i am girl. Nafiseh Saberi Iran. - Original Message - From: "shirley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 21, 2001 10:47 AM Subject:

RE: please Help ! Database connection

2002-01-25 Thread John Edwards
This looks like your script isn't returning the correct HTML headers. It's not a database connection fault. I would strongly suggest using the CGI.pm module. This provides an easy interface to all things CGI. All this to the top of your script. use CGI qw(:standard); use CGI::Carp qw(fatalsToBro

Re: please Help ! Database connection

2002-01-25 Thread Jon Molin
or do: print "Content-type: text/html\n\n"; /Jon John Edwards wrote: > > This looks like your script isn't returning the correct HTML headers. It's > not a database connection fault. I would strongly suggest using the CGI.pm > module. This provides an easy interface to all things CGI. > > All

RE: please Help ! Database connection

2002-01-25 Thread John Edwards
using the module, I never bother with print "Content-type: text/html\n\n"; as it won't display errors. Just my 0.02c John -Original Message- From: Jon Molin [mailto:[EMAIL PROTECTED]] Sent: 25 January 2002 14:48 To: John Edwards Cc: 'mb'; [EMAIL PROTECTED]

RE: Please Help!!! Newbie question

2005-08-31 Thread Bakken, Luke
Perl wrote: > I am new to perl so I need some help from the list with this script. > It takes a value from command line and then returns afters processing. > For example, If value is "c:\projects\test 2005.txt" the script will > returns it as "test" (actually omitts any space in the directory or >

Re: Please Help!!! Newbie question

2005-08-31 Thread Eric Walker
On Wednesday 31 August 2005 09:12 am, Perl wrote: > I am new to perl so I need some help from the list with this script. It > takes a value from command line and then returns afters processing. > For example, If value is "c:\projects\test 2005.txt" the script will > returns it as "test" (actually o

Re: Please Help!!! Newbie Question

2005-09-01 Thread Randy W. Sims
Perl wrote: Hi List, I have this script which actually returns the value of the filename with extension but If the file name is something like "c:\projects\text 009.txt" (having a space in filename which is common in windows). This script only returns "text" instead of returning full name of fil

RE: Please Help!!! Newbie Question

2005-09-01 Thread Bakken, Luke
Perl wrote: > Hi List, > > I have this script which actually returns the value of the filename > with extension but If the file name is something like > "c:\projects\text 009.txt" (having a space in filename which is > common in windows). > This script only returns "text" instead of returning ful

Re: Please help with Database issue

2002-07-23 Thread George Schlossnagle
On Tuesday, July 23, 2002, at 04:06 PM, Garry wrote: > Hello everyone, > > I sure hope I am posting in the right place, the "beginners" definitely > applies here. > > I have a web hosting account and my ISP has the following Perl modules > installed: > > AnyDBM_File,pm > db_file > NDBM_File.pm >

Re: Please help with Database issue

2002-07-23 Thread Jenda Krynicky
From: "Garry" <[EMAIL PROTECTED]> > I sure hope I am posting in the right place, the "beginners" > definitely applies here. > > I have a web hosting account and my ISP has the following Perl modules > installed: > > AnyDBM_File,pm > db_file > NDBM_File.pm > ODBM_File.pm > SDBM_File.pm > gdbm_fil

Re: Please help with Database issue

2002-07-23 Thread George Schlossnagle
I'm putting this back on-list since other people may be interested in continuing this thread. If you already have all this information in an access db and you like access, I would recommend finding a hosting provider that will host your access app. Alternatively, a provider that would provide

Re: Please help with Database issue

2002-07-23 Thread George Schlossnagle
> Even better option might be DBD::SQLite. That's a "whole" SQL > compatible database in Perl module. It is quicker than > DBD::CSV/DBD::File and the whole database is just one file, just like > Access. Wow, learn something new everyday. Very cool. > > That way you do not have to upload tens of

Re: Please help with Database issue

2002-07-23 Thread Wiggins d'Anconia
> > Could you ask them if they would install (or have already installed) > DBI and DBD::CSV or DBD::File? > You could then convert your database to flat files or CSVs on your > side (by a Perl script that would just connect the Access via > DBD::ODBC, the CSVs/Files, and would copy all tables

Re: Please help with Database issue

2002-07-23 Thread Garry
Thanks Jenda and George, Considering the hosting company is a rather large conglomerate, and their answer to any question I have regarding databases is to send me to their helpfile, which does not mention databases or Perl anywhere, it might be time to change who I am giving my monthly fees to...

Re: Please help with Database issue

2002-07-24 Thread Jenda Krynicky
From: Wiggins d'Anconia <[EMAIL PROTECTED]> > > > > > Could you ask them if they would install (or have already installed) > > DBI and DBD::CSV or DBD::File? You could then convert your database > > to flat files or CSVs on your side (by a Perl script that would just > > connect the Access via D

Re: Please help Simple Perl programm

2002-12-09 Thread Sheriff Gaye
From:"Alfa rOMEO" <[EMAIL PROTECTED]>To:[EMAIL PROTECTED]:Please help Simple Perl programmDate:Fri, 06 Dec 2002 21:32:22 +Mime-Version:1.0Content-Type:text/plain; format=flowedMessage-ID:<[EMAIL PROTECTED]> Plain Text Attachment [ Save to my Yahoo! Briefcase | Download File ] >>Hi,>>>I

Re: Please help - perl system function

2002-05-23 Thread drieux
On Thursday, May 23, 2002, at 04:13 , Frank Wu wrote: > I have a perl script using system function, owner is root, like, > > print "Previous $?, $!" ; > system("mkdir --parents --mode=0755 /home/myhome/disp/archive") == 0 > or die "Unable to create directory,$!, $?" > > system

Re: Please help - perl system function

2002-05-23 Thread John W. Krahn
Frank Wu wrote: > > Hi guys, Hello, > I have a perl script using system function, owner is root, like, > > print "Previous $?, $!" ; > system("mkdir --parents --mode=0755 /home/myhome/disp/archive") == 0 > or die "Unable to create directory,$!, $?" > > system function

Re: Please help with convoluted script

2007-02-04 Thread Tom Phoenix
On 2/3/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: my @date = (localtime)[3..5]; my $day = sprintf '%02d', $date[0] - 1; my $month= sprintf '%02d', $date[1] + 1; You shouldn't have to do arithmetic on the date components, including all that mess about how many days are in a month

Re: Please help with convoluted script

2007-02-09 Thread Mathew
I'm running this as a cron job 1 minute after midnight on Saturday nights (Sunday morning) so as to cover all of Saturday back through the previous Sunday. Does your suggestion mean I'd have to run it late Sunday night in order for it to cover Saturday back to the previous Sunday (since the timest

Re: Please help with convoluted script

2007-02-09 Thread Tom Phoenix
On 2/9/07, Mathew <[EMAIL PROTECTED]> wrote: I'm running this as a cron job 1 minute after midnight on Saturday nights (Sunday morning) so as to cover all of Saturday back through the previous Sunday. Does your suggestion mean I'd have to run it late Sunday night in order for it to cover Saturd

Re: Please help with convoluted script

2007-02-11 Thread Mathew Snyder
Tom Phoenix wrote: > On 2/9/07, Mathew <[EMAIL PROTECTED]> wrote: > >> I'm running this as a cron job 1 minute after midnight on Saturday >> nights (Sunday morning) so as to cover all of Saturday back through the >> previous Sunday. Does your suggestion mean I'd have to run it late >> Sunday nigh

Re: Please help with convoluted script

2007-02-11 Thread Jeff Pang
> >#!/usr/bin/perl > >use warnings; >use strict; > >my @date = (localtime (time - (24*60*60)))[3..5]; > >foreach my $i (@date) { >print $i . "\n"; >} > >exit; > >I get this: > >10 >1 >107 > > >I still have to add 1 to the month. Is that right? Also, the year still needs >to be fixed

Re: Please help with convoluted script

2007-02-11 Thread Mathew Snyder
Jeff Pang wrote: >> #!/usr/bin/perl >> >> use warnings; >> use strict; >> >> my @date = (localtime (time - (24*60*60)))[3..5]; >> >> foreach my $i (@date) { >>print $i . "\n"; >> } >> >> exit; >> >> I get this: >> >> 10 >> 1 >> 107 >> >> >> I still have to add 1 to the month. Is that r

Re: Please help with convoluted script

2007-02-11 Thread Owen
On Sun, 11 Feb 2007 03:18:00 -0500 Mathew Snyder <[EMAIL PROTECTED]> wrote: > Tom Phoenix wrote: > > On 2/9/07, Mathew <[EMAIL PROTECTED]> wrote: > > > >> I'm running this as a cron job 1 minute after midnight on Saturday > >> nights (Sunday morning) so as to cover all of Saturday back through th

Re: Please help with convoluted script

2007-02-11 Thread Mathew Snyder
Owen wrote: > On Sun, 11 Feb 2007 03:18:00 -0500 > Mathew Snyder <[EMAIL PROTECTED]> wrote: > >> Tom Phoenix wrote: >>> On 2/9/07, Mathew <[EMAIL PROTECTED]> wrote: >>> I'm running this as a cron job 1 minute after midnight on Saturday nights (Sunday morning) so as to cover all of Saturd

Re: Please help with convoluted script

2007-02-11 Thread Jeff Pang
> >I need to make sure $day and $month are in 2-digit format so that wouldn't >work. > At least, not anyway I'm presently familiar with. I tried to use sprintf in >there but it failed because of not enough arguments. $day = '0' . $day if length($day) < 2; $month = '0' . $month if length($month

Re: Please help with convoluted script

2007-02-11 Thread Rob Dixon
Mathew Snyder wrote: > Tom Phoenix wrote: >> On 2/9/07, Mathew <[EMAIL PROTECTED]> wrote: >> >>> I'm running this as a cron job 1 minute after midnight on Saturday >>> nights (Sunday morning) so as to cover all of Saturday back through the >>> previous Sunday. Does your suggestion mean I'd have t

Re: Please help with convoluted script

2007-02-11 Thread Owen
On Sun, 11 Feb 2007 03:51:17 -0500 Mathew Snyder <[EMAIL PROTECTED]> wrote: > Jeff Pang wrote: > >> #!/usr/bin/perl > >> > >> use warnings; > >> use strict; > >> > >> my @date = (localtime (time - (24*60*60)))[3..5]; > >> > >> foreach my $i (@date) { > >>print $i . "\n"; > >> } > >> >

Re: Please help with convoluted script

2007-02-11 Thread Mathew Snyder
Rob Dixon wrote: > Mathew Snyder wrote: >> Tom Phoenix wrote: >>> On 2/9/07, Mathew <[EMAIL PROTECTED]> wrote: >>> I'm running this as a cron job 1 minute after midnight on Saturday nights (Sunday morning) so as to cover all of Saturday back through the previous Sunday. Does your su

Re: Please help with convoluted script

2007-02-11 Thread Dr.Ruud
Mathew Snyder schreef: > I need to make sure $day and $month are in 2-digit format Don't mix value and presentation. Variant-1: perl -wle' my $i = 0; my ($day, $month, $year) = map $_ + (0, 1, 1900)[$i++], (localtime)[3..5]; printf qq/%04d %02d %02d\n/, $year, $month, $day; '

Re: Please help with convoluted script

2007-02-12 Thread Ken Foskey
On Sun, 2007-02-04 at 07:27 -0800, Tom Phoenix wrote: > On 2/3/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > > > my @date = (localtime)[3..5]; > > my $day = sprintf '%02d', $date[0] - 1; > > my $month= sprintf '%02d', $date[1] + 1; > > You shouldn't have to do arithmetic on the date

Re: please help correct my script

2013-11-07 Thread David Precious
On Wed, 6 Nov 2013 23:51:04 + "Wang, Li" wrote: > Dear Perl Users > > I have hundreds of input files, named as geneName_paml_formated.mlc > In each file, there are some contents similar as follows: > > w (dN/dS) for branches: 0.00010 1.07967 145.81217 0.00010 > dN & dS for each branch > b

Re: please help correct my script

2013-11-07 Thread Shaji Kalidasan
Dear Wang, It is actually writing the desired info to the output file "summaryOFdNdS.txt". Here is the content of the output file. In my case, I gave the filename "mydata.txt" as command line argument [content of summaryOFdNdS.txt] geneNamebranchtNSdN/dSdNdSN*dNS*dS mydata.txt5..1      0.043  1

Re: please help correct my script

2013-11-07 Thread Jim Gibson
On Nov 7, 2013, at 2:28 AM, David Precious wrote: > On Wed, 6 Nov 2013 23:51:04 + > "Wang, Li" wrote: > >> Dear Perl Users >> >> I have hundreds of input files, named as geneName_paml_formated.mlc >> In each file, there are some contents similar as follows: >> >> w (dN/dS) for branches:

RE: please help correct my script

2013-11-07 Thread Wang, Li
Dear Shaji Yes, that is what I want for the output file. Best Li From: Shaji Kalidasan [shajiin...@yahoo.com] Sent: Thursday, November 07, 2013 4:30 AM To: Wang, Li; beginners@perl.org Subject: Re: please help correct my script Dear Wang, It is actually writing

RE: please help correct my script

2013-11-07 Thread Wang, Li
From: Shaji Kalidasan [shajiin...@yahoo.com] Sent: Thursday, November 07, 2013 4:30 AM To: Wang, Li; beginners@perl.org Subject: Re: please help correct my script Dear Wang, It is actually writing the desired info to the output file "summaryOFdNdS.txt". Here is the content of

Re: Please help !! Locking mail before delivery

2002-12-12 Thread Ramprasad A Padmanabhan
There seems to be no real clean way of doing this, I can think of two ways. 1) Modify your smtp server ( sendmail ) not to process the queue automatically. If you are using sendmail you would the start up script would have sendmail -bd -q5m remove the -q5m after the end of the processing cl

Re: Please help: writing an tiff image

2002-05-03 Thread Felix Geerinckx
> I am going crazy looking for a command that converts these scaled > numbers to some relevant format compatible with the TIFF format. > > I am however able to convert a tiff image to numbers (0-255) > character by character using the ORD command but the reverse > process.. no clue! please help!

Re: Please help me w/ my sub

2008-10-14 Thread John W. Krahn
Richard Lee wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. Please leave me a feedback. thank you. 156 time(s) Codec(s) : unassigned_38 185 time(s) Cod

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
John, I think this is now fixed. Still looking to make sure its covering all basis.. sub codec_list { #my @codec_d = qw/0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 # 28 29 30 31 32 33 34 35--71 72--76 77--95 96--127/; my @codec_d = qw

Re: Please help me w/ my sub

2008-10-14 Thread Chas. Owens
On Tue, Oct 14, 2008 at 02:15, Richard Lee <[EMAIL PROTECTED]> wrote: > below sub works fine except the line where key is default. > Instead of printing out PCMU only once, it's printing it out 40 times > randomly.. > Trying to figure out what I did wrong. snip I found your code to be very odd. Y

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
Chas. Owens wrote: On Tue, Oct 14, 2008 at 02:15, Richard Lee <[EMAIL PROTECTED]> wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. snip I found your

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
Chas. Owens wrote: On Tue, Oct 14, 2008 at 02:15, Richard Lee <[EMAIL PROTECTED]> wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. snip I found your

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
John W. Krahn wrote: Richard Lee wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. Please leave me a feedback. thank you. 156 time(s) Codec(s) : unassign

Mail::IMAPClient failing [was Re: Please help]

2005-10-05 Thread Jeff 'japhy' Pinyan
On Oct 5, [EMAIL PROTECTED] said: Please help me fix this. Please choose a more descriptive subject line next time. When I run it, I get the following message: Can't call method "select" on an undefined value at ./fof_imap1.pl line 12. This means that $imap is undefined, which means that

Re: Please help with perl library path problem!

2001-08-07 Thread Chidi
I am getting an error on my solaris 5.6 sparc box when I try to run a Perl program with the Sybperl CTLIB extension. Specifically, I get the following error message: Can't load '/tools/ver/perl-5.005_03/lib/site_perl/5.005/sun4-solaris/auto/Sybase/CTlib /CTlib.so' for module Sybase::CTlib: ld.

RE: Please help with perl library path problem!

2001-08-07 Thread Matt Crapo
Oops - forgot to share... -Original Message- From: Matt Crapo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 4:19 PM To: 'Chidi' Subject: RE: Please help with perl library path problem! I may be off in left field here, but I've had similar error messages (

Re: Please help me recover my Perl script.

2009-12-24 Thread Parag Kalra
Can anyone please let me know how to use 'iconv' command with Perl script. I mean what should be my input and output file format while using 'iconv' with a Perl script which will help me recover my Perl script. Hey BTW Merry Christmas to all. :) Cheers, Parag On Fri, Dec 25, 2009 at 11:05 AM

Re: Please help me recover my Perl script.

2009-12-25 Thread Randal L. Schwartz
> "Parag" == Parag Kalra writes: Parag> I was coding my Perl script in Notepad++ editor and it was on verge of Parag> completion. Parag> All of a sudden my machine rebooted. And after that I found all my data Parag> lost. It is containing series of 'NUL' characters. Welcome to Windows. Per

Re: Please help me recover my Perl script.

2009-12-27 Thread Shlomi Fish
On Friday 25 Dec 2009 09:07:53 Parag Kalra wrote: > Can anyone please let me know how to use 'iconv' command with Perl script. > > I mean what should be my input and output file format while using 'iconv' > with a Perl script which will help me recover my Perl script. > I think it's from UTF-16

Re: Please help me recover my Perl script.

2009-12-27 Thread Shlomi Fish
On Sunday 27 Dec 2009 12:19:48 Shlomi Fish wrote: > On Friday 25 Dec 2009 09:07:53 Parag Kalra wrote: > > Can anyone please let me know how to use 'iconv' command with Perl > > script. > > > > I mean what should be my input and output file format while using 'iconv' > > with a Perl script which wil

Re: Please help me recover my Perl script.

2009-12-27 Thread Parag Kalra
> > I think it's from UTF-16 to UTF-8. > > That doesn't seem to work. When I try to view my roasted file through 'less' command I get following output: # less Test.pl *"Test.pl" may be a binary file. See it anyway? * Is there a way I can convert this binary file to its initial readable state.

Re: Please help me recover my Perl script.

2009-12-27 Thread Owen
>> >> I think it's from UTF-16 to UTF-8. >> >> > > That doesn't seem to work. > > When I try to view my roasted file through 'less' command I get > following > output: > > # less Test.pl > *"Test.pl" may be a binary file. See it anyway? * > > Is there a way I can convert this binary file to its i

Re: Please help me recover my Perl script.

2009-12-27 Thread Parag Kalra
> > What does it say in a hex editor? > # hexdump Test.pl 000 * 0001090 0001094 Cheers, Parag

Re: Please help me recover my Perl script.

2009-12-27 Thread Owen
>> >> What does it say in a hex editor? >> > > > # hexdump Test.pl > 000 > * > 0001090 > 0001094 I would take a guess and say don't waste anymore time on it. Put your energies in rewriting the program -- Owen -- To unsubscribe, e

Re: Please help: perl run out of memory

2022-04-17 Thread David Mertens
I see nothing glaringly inefficient in the Perl. This would be fine on your system if you were dealing with 1 million items, but you could easily be pushing up against your system's limits with the generic data structures that Perl uses, especially since Perl is probably using 64-bit floats and int

Re: Please help: perl run out of memory

2022-04-18 Thread Rob Coops
Hi Wilson, Looking at the script I see some room for improvement. You currently declare %hash as a global variable, and keep it around forever. With tens of millions of rows that is quite a large structure to just have sitting around after you have build the %stat hash. So I would start by limitin

Re: Please help: perl run out of memory

2022-04-21 Thread Adriel Peng
I am not sure, but can Tie::Hash etc be used by tying hash to a local file to reduce the memory use? regards.

  1   2   >