Remove old core dump directories in Oracle ... ???

2010-06-06 Thread newbie01 perl
Hi all, Oracle core dumps are created as directories. I want to remove these directories after a certain period of time, for example 10 days. I have the following script that searches a directory for files that are older than 10 days and possibly remove them. At the moment, for the sake of testin

Re: Remove old core dump directories in Oracle ... ???

2010-06-06 Thread newbie01 perl
2010/6/7 Shlomi Fish > On Sunday 06 Jun 2010 19:59:36 Wojciech Łysiak wrote: > > On 06.06.2010 18:12, newbie01 perl wrote: > > > Hi all, > > > > > > Oracle core dumps are created as directories. I want to remove these > > > directories after

Re: Remove old core dump directories in Oracle ... ???

2010-06-06 Thread newbie01 perl
On Mon, Jun 7, 2010 at 3:25 PM, Uri Guttman wrote: > >>>>> "np" == newbie01 perl writes: > > np> I found a better example at a Perlmonk posting and changed it a bit as > np> below: > > np> #!/usr/bin/perl > np> use strict; > &g

Re: Remove old core dump directories in Oracle ... ???

2010-06-06 Thread newbie01 perl
loop ... The script is to search the core dump directory but exclude that directory, kinda like doing a grep for ^/u01/oradump/cdump, /u01/oradump/cdump$/ and exclude that from the directory to remove. On Mon, Jun 7, 2010 at 4:32 PM, Uri Guttman wrote: > >>>>> "np" =

Re: Remove old core dump directories in Oracle ... ???

2010-06-06 Thread newbie01 perl
g the @ARGV ... Your hacked pseudo-code works fine and does what am looking for ... Thanks ... On Mon, Jun 7, 2010 at 6:45 PM, Uri Guttman wrote: > >>>>> "np" == newbie01 perl writes: > > np> Hi Uri, > uri> first off please edit the quote

Re: Remove old core dump directories in Oracle ... ???

2010-06-07 Thread newbie01 perl
Hi Uri, Oops ... sorry, I think I've explained it wrong ... I mean, supposedly, the script is to scan the sub-directories of $ARGV[0] but not include $ARGV[0] in the list so I've modified the pseudo-code hack that you provided to do just that ...

Perl stat script ... ???

2010-07-18 Thread newbie01 perl
Hi all, Does anyone know if someone had written a Perl stat script that mimics the Linux' stat command? I want to be able to use the stat command on Solaris, unfortunately, I just found out that that command is not available on Solaris and HP-UX so am thinking a Perl script should be the w

Some explanation please -- iterating thru command line arguments

2010-07-21 Thread newbie01 perl
Hi all especially Perl teachers if anyone is ... :-) I just want to know if someone can provide some explanation on how does the argument iterator sub-routine below work. The Perl script is called from a UNIX Korn script as below: mail_smtp.pl -r ${MAILFROM} -s "$subject_line TEST

Re: Some explanation please -- iterating thru command line arguments

2010-07-23 Thread newbie01 perl
Hi Brandon, Thanks ... using the cat and pipe looks "cleaner" ... I will try that one ... thanks On Fri, Jul 23, 2010 at 4:53 AM, Brandon McCaig wrote: > On Wed, Jul 21, 2010 at 1:17 PM, newbie01 perl > wrote: > > Does $_ contains the following values on each iteration

problem while installing bugzilla

2010-08-11 Thread perl pra
Hi All, I am having a problem while isntalling Bugzilla , Checksetup.pl throws errors and exits.Below is the detail. when I run checksetup.pl in bugzilla folder I get the following error, Though I have installed latest DBD-mysql which is available in CPAN. ERROR ---

perl DBI problem while installing bugzilla

2010-08-11 Thread perl pra
> Hi All, > > I am having a problem while isntalling Bugzilla , Checksetup.pl throws > errors and exits.Below is the detail. > > when I run checksetup.pl in bugzilla folder I get the following error, > Though I have installed latest DBD-mysql which is available in CPAN. > > ERROR

wsdl2perl,perl2xml

2008-04-07 Thread perl pra
Hi Gurus, I have a wsdl file i need to do the following in perl. I need to convert the wsdl into perl object or perl code. Then user perl object/perl code to generate the request xml files with different data types into the tags. can anybody give me some idea or Is there any other way of doing

blessing a hash

2008-04-15 Thread perl pra
Hi Gurus, How can I bless a hash. below is my code: package load; use strict; use warnings; sub new { my $class=shift; my %samp=('1' => "xxx", '2' => ""); } sub print { here i need to print $samp{1}

Re: blessing a hash

2008-04-15 Thread perl pra
Chas. Owens <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 9:54 AM, perl pra <[EMAIL PROTECTED]> wrote: > > Hi Gurus, > > > > How can I bless a hash. > > > > below is my code: > > > > package load; > > > >

Re: csv file question

2008-05-09 Thread perl pra
Hi please check the following script , you need not to handle null because it is in quotes,I have tested the following code it works fine use strict; use warnings; my %has; my $NULL=0; (open my $FH, '<', "mail.csv") or die "$!"; while(<$FH>) { my($one,$two,$three)=split(/\,/,$_); $has{$one

creating multiple threads in perl

2008-05-28 Thread perl pra
Hi gurus, I need to create "n" mulitple threads simaltaneously and all the threads should do same operation(just like Jmeter). i have a subroutine sub printname{ my ($tid)[EMAIL PROTECTED]; print "name is guru tid is $tid\n"; } all the threads

creating simaltaneous threads

2008-06-04 Thread perl pra
hi gurus, I want to create 100 threads/processes simaltaneoulsy (at the same time), and those 100 threads/processes should execute a subrountine at the same time. can anybody help me giving some ideas reagarding this, I tried creating this 100 process using fork in a for loop but that does no

Re: isolating text in a string

2008-07-05 Thread Perl WANNABE
ing =~ /\w\["([^"]+)",/; >> my $snippet = $1; >> >> does the trick. I can see If I don't get on top of regex's I'm >> seriously restricting the power of perl. Starting to understand them >> better now. > > You shouldn't do that.

arrayref

2008-07-07 Thread elavazhagan perl
$RegionStmt in an individual array... I hope that we can use the following statement to retrive the first value of the first array ref. $countryValues= $Regions[0][0]; I would like to retrive all the values instead of single one.Please suggest me. Thanks . #Start #! /usr/local/perl/bin use

Re: arrayref

2008-07-08 Thread elavazhagan perl
#! /usr/perl/bin use strict; my %Regions = ( Europe => [ 'Belgium', 'Denmark', 'France', 'Germany', 'Great Britain', 'Hungary', 'Portugal', 'Russia', 'Spain', 'Sweden&#

combo box+ Perl+JS

2008-07-10 Thread elavazhagan perl
following Perl scripts . *ISSUES:* Now when the user choose a country,the final country in the continent is displayed as selected ie the following country override the previous one...Example..the Turkey country is displayed as selected country what ever we choose in the Europe Region Please

combo boxes + Perl

2008-07-14 Thread elavazhagan perl
HI... I have two combo boxes in which the first one is used for choosing the Regions and the second one is for the corresponding countries. I would like to do this with Perl and html without importation any modules and eventhough it is better by Javascript. I am getting the pull down menu

Re: combo boxes + Perl

2008-07-15 Thread elavazhagan perl
IN => "India", MY => "Malaysia", NZ => "NewZealand", PH => "Philippines", ZA => "South Africa", TW => "Taiwan", VN => "Vietnam"); my $item="$country_code"; while (my($key,$value) =

Shell script + pop up function

2008-07-18 Thread elavazhagan perl
Hi, I need to show a pop up message in a page( http://localhost/cgi-bin/pleaseguideme.cgi) when the cron job fails.It means I think we need to call a javascript popup function in the else part. Please if anyone have the idea how to accomplish this,you are requested to share the info with us..

$hDATA1::YEAR -reg

2008-07-24 Thread elavazhagan perl
Hi Guys... This query may be irreverent to this forumsif it is please pardon me.. In my form there is one option to chose the entire year... ### Choose an Entire Year: (only years with recorded usage will display)* $hDATA1::YEAR* # when the user choose the date the ran

output of the sql querry

2008-08-12 Thread elavazhagan perl
Hi Guys, The following $sql querry is being executed in the toad well and getting output as C. While trying to fetch the value through DBI ,it outputs the value as I. Please suggest me to get the right one..Thanks. #Code starts here my $sql = qq[*SELECT MAX(last_run_status) KEEP (DENSE_RANK LAS

Display GD graph on the screen.

2008-09-29 Thread Funny Perl
I just start to learn perl on GD graph. My OS is Linux. I got a example, but how can I display the graph on the screen ? use Gtk2 or something else? Hereis is the code: #!/usr/bin/perl -w use GD; my $gd = GD::Image->new(400,300); my $white = $gd->colorAllocate(255, 255, 255); my

Re: Display GD graph on the screen.

2008-09-29 Thread Funny Perl
On Sep 29, 11:05 pm, [EMAIL PROTECTED] (Sandy lone) wrote: > On Mon, Sep 29, 2008 at 4:05 PM, Funny Perl <[EMAIL PROTECTED]> wrote: > > I just start to learn perl on GD graph. My OS is Linux. > > > I got a example, but how can I display the graph on the screen ? use &g

NTML Authentication and getting the webpage

2008-09-30 Thread perl pra
somebody demonstrate me how to do NTLM proxy authentication and get the page within a perl script. Thanks, pelp

perl module for graphs lines point

2008-11-17 Thread ben perl
Hi , Is there a perl module to plot graphs with lines point. Thanks, -Bandeep

perl cumulative module question

2008-11-22 Thread ben perl
Is there a perl module to find cumulative in a column? It should subtract from the previous row and creates new column. For example, If i have the follow column in my file 2 6 9 It gives me 2 6-2 = 4 9-4 = 2 So the resulting column is 2 4 2 Hope I am using cumulative as the right word to

Re: perl cumulative module question

2008-11-27 Thread ben perl
Thanks Everyone!! This should help. On Sat, Nov 22, 2008 at 9:17 AM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Rob Dixon wrote: > > > > Your arithmetic is odd. You say > > > > 9-4 = 2 > > > > and so your resulting list should be (2,4,2). If you want to subtract the > > previous result from the ne

trying to put in an array patters matched.

2008-12-12 Thread ben perl
egular expression is really long as compared to the one i am mentioning and was wondering if could create a loop which would iterate over $1,$2,$3 .$15 (temporary variable which perl uses to store patterns matched) and store those in an array. Thanks, -Ben

disk performance or destructive testing

2008-12-16 Thread ben perl
Does anyone know any perl module for validating or do some desctructive testing on disks on Linux platform? Thanks, -Ben

hwo to get time in milliseconds

2008-12-26 Thread perl pra
hi All, I need to get current time in milliseconds. Any pointers would be highly appreciated thanks, siva

Thread managment in Perl

2008-12-26 Thread perl pra
Hi All, I am able to create simaltaneous threads and access a subroutine(which performs firing of reqeusts). with the created threads. Some time I get the following error *"Free to wrong pool 225f40 not 13ddbd50 at C:/Perl/lib/constant.pm line -1." .*Whats the reason for the error?

Thread managment in Perl

2008-12-26 Thread perl pra
Hi All, I am able to create simaltaneous threads and access a subroutine(which performs firing of reqeusts). with the created threads. Some time I get the following error *"Free to wrong pool 225f40 not 13ddbd50 at C:/Perl/lib/constant.pm line -1." .*Whats the reason for the error?

Re: Thread managment in Perl

2008-12-30 Thread perl pra
Hi All, I am trying out a jmeter like tool with perl.The following are the tasks that my perl script needs to do. 1) Fire specified number of http requests in one second. 2) log the response times of the request. 3) the Thread should be freed once it completes the task. The following are the

Re: Thread managment in Perl

2008-12-31 Thread perl pra
Hi All, I dont see error if i run the same script on Linux. But it still firing 100 requests in 6 seconds insted of 1 second. Any pointers on this? Thanks, PP On 12/30/08, zentara wrote: > > On Tue, 30 Dec 2008 14:47:08 +0530, perl...@gmail.com ("perl pra") > wrote: >

Fwd: Thread managment in Perl

2008-12-31 Thread perl pra
Hi All, I dont see error if i run the same script on Linux. But it still firing 100 requests in 6 seconds insted of 1 second. Any pointers on this? Thanks, PP On 12/30/08, zentara wrote: > > On Tue, 30 Dec 2008 14:47:08 +0530, perl...@gmail.com ("perl pra") > wrote: &g

use vs require

2009-01-22 Thread ben perl
Hi Everyone, I am could never understand the difference between use vs require? If "require" is older way of including modules, why not just make it obsolete. Thanks, -Bandeep

Re: use vs require

2009-01-22 Thread ben perl
Hi Chas, Can you give me an example when one would be used over the other? So, is require used more for efficiency, so we load the module only if we need it? Thanks, -Ben On Thu, Jan 22, 2009 at 2:50 PM, Chas. Owens wrote: > On Thu, Jan 22, 2009 at 17:33, ben perl wrote: > > Hi

Re: explanation of @INC

2009-01-23 Thread ben perl
Thanks Everyone, This does help.. -Bandeep On Fri, Jan 23, 2009 at 9:48 AM, Gunnar Hjalmarsson wrote: > Scott Haneda wrote: > >> On Jan 23, 2009, at 1:01 AM, Gunnar Hjalmarsson wrote: >> >>> Scott Haneda wrote: >>> >>>> ASSP required about

perl script to log on to website

2009-01-29 Thread ben perl
Is there a way i can use perl to log on to my cell phone provider website and download the minutes i have used and email me if i am going over certain minutes? Thanks, -Ben

running perl script on remote windows machine

2009-02-06 Thread perl pra
Hi I have a pel script I want to execute this perl script on remote machine and get the information related to remote machine.(both local and remote machines are Windows machines) Hwo can i do that thanks, PP

accessing remote registry

2009-02-06 Thread perl pra
y local Ip. Can somebody help me with the below script, so that this works for remote IPs also. please check the code below: -- #!/usr/bin/perl use strict; use warnings; use Win32::Registry; my ($node) = 'your_ip_here'; my $Register=&#

Re: accessing remote registry

2009-02-09 Thread perl pra
Hi Jenda, I get the same error even if i remvoe the backslashes. Thanks, siva On 2/6/09, Jenda Krynicky wrote: > > From: perl pra > > Can anybody help in accessing the registry of remote windows machine and > get > > the keys in the folder *HKEY_LOCAL_MACHINE/SOFTWAR

Could anyone please help with PERL file association.

2004-07-09 Thread Marco Perl
Hi Team , I am always grateful to you for helping. I used PERL in UNIX and not familiar with Win-2000 environment. I installed ActiveState PERL on Windows-2k but it did not setup MSWin32 file association. so now when I double-click on myscript.PL rather than executing my module it opens it with

Re: Could anyone please help with PERL file association.

2004-07-09 Thread Marco Perl
Hi, I associted it with c:\Perl\bin\perl.584 it runs my module one time with perl but the module does not stay associated even though I check marked always associte with this program. Marco. [EMAIL PROTECTED] wrote: Right mouse click on Start,select Explore, locate the file, Right mouse

Could anyone please help with PERL file association.

2004-07-09 Thread Marco Perl
Hi Team , I am always grateful for your help. when I double-click on myscript.PL rather than executing my module it opens it with Notes-editor. I did an ~Open-with on it and associted it with c:\Perl\bin\perl.584 this will run my module only one time with perl, and the module does not stay

Re: A simple text or GUI-based menu script

2004-07-10 Thread Marco Perl
> >>1./ Where can I locate a text or GUI-based menu > > program in Perl to bundle > > >>together a set of scripts and program. > > > > Hi, I thought this was a useful program to have, > so > > I perfected it a > > bit. I hope you find it us

[Solved]Re: Could anyone please help with PERL file association.

2004-07-10 Thread Marco Perl
I am always grateful to you guys. this is how I finally solved it: to set path: start>control-panel>systems>env-variables>new name:path value: %path%;C:\Z_PERL\Perl\bin then Open a Win-explorer, tools > folder-options > File Type, create a new extention called pl and ptk, a

Re: A simple text or GUI-based menu script

2004-07-10 Thread Marco Perl
how do I get all thread for below subject: Re: A simple text or GUI-based menu script thanks, Marco. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail -- To unsubscribe, e-mail: [EMAIL PR

Could you please help with a PERL/TK question.

2004-07-11 Thread Marco Perl
Hi, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up and displays my program errors. but this screen closes so fast that its impossible to read the error. so, how do I debug my perl.ptk script or how do I slow down the DOS-screen to read the errors

how do you run the debuger for perl/TK in Windows-2000

2004-07-11 Thread Marco Perl
Greetings, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up and displays my program errors. but this screen closes so fast that its impossible to read the error. so, how do I debug my perl.ptk script or how do I slow down the DOS-screen to read the errors

[SOLVED] RE: Could you please help with a PERL/TK question.

2004-07-12 Thread Marco Perl
adding ; did not work, but running it from cmd shell did. thank you so much. regards, Marco. --- Toby Stuart <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Marco Perl [mailto:[EMAIL PROTECTED] > > Sent: Monday, 12 July 2004 4:19

[SOLVED] RE: how do you run the debuger for perl/TK in Windows-2000

2004-07-12 Thread Marco Perl
the extra traffic on an > already congested list. > > In any case, someone gave a good answer to your > original question already. > > -Original Message- > From: Marco Perl [mailto:[EMAIL PROTECTED] > Sent: Sun 7/11/2004 11:58 PM > To: [E

in a TK-GUI how to show grand-children of a child from toolbar.

2004-07-12 Thread Marco Perl
I developed a TK-module for ActivePerl in Win-2000 env. this script has a toolbar with 5 toolbar-items. one of these items called "Tests" has a child called "Child...>" who has grand-children [choice1, choice2, choice3]. I want to click on "Child...>" and diplay grand-children to its right. i.e.

Help a newbie to pick best version of Linux for Perl and perl/TK.

2004-07-14 Thread Marco Perl
Hi, Could you tell me what version of Linux is the most stable and with most lib modules to do pearl and perl/TK? I really appreciate your experience. Marco. - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!

Help a newbie to fix a TK GUI script with toolbar children.

2004-07-14 Thread Marco Perl
Hi Team , I am always grateful for your help. in a TK-GUI how to show grand-children of a child from toolbar. I developed a TK-module for ActivePerl in Win-2000 env. this script has a toolbar with 5 toolbar-items. one of these items called "Tests" has a child called "Child...>" who has grand

TELNET question from a newbie.

2004-07-15 Thread Marco Perl
Hi, I am always grateful for your help. I use CYGWIN on win-2000 with a “$” prompt and run my .pl to telnet to a VxWorks station. When I do it manually this is what I follow: telnet open 144.248.176.132 then I get the login prompt which is "VxWorks Login: " and I enter "marco". then the "

[Solved]Re: Help a newbie to pick best version of Linux for Perl and perl/TK.

2004-07-18 Thread Marco Perl
thank you so much. regards, Marco. --- Harald Richard Ashburner <[EMAIL PROTECTED]> wrote: > Marco Perl said: > > > >Hi, Could you tell me what version of Linux is the > most stable and > > > >with most lib modules to do pearl and perl/TK? > > &g

Interesting issue: $t->print("ls"); fails.

2004-07-22 Thread Marco Perl
I'm always grateful for your input. I have 2 functions, in func1 any $t->print(); works fine. but func1 got too long and I created func2 to continue on $t->print(); statements but it doesn't work because perl interpreter does not know what $t is. so!, how can I associate $t i

Team! Help a newbie with $t->print("ls"); which fails.

2004-07-23 Thread Marco Perl
I have 2 functions. in func1 $t->print(); works fine. but func1 got too long and I created func2 to continue on $t->print(); statements. but $t->print(); of func2 does not work (perl interpreter does not know what $t is). so!, how can I associate $t in func2 to $t in func1, and co

A problem about warning information.

2005-01-02 Thread Perl Hacker
Below is my script, When I run the script, everything is ok. #! /usr/bin/perl âw print "111\n"; warn "222 \n"; Problem emerges when using the following command line under csh, $test.pl >& test.log Where test.log is like: 222 111 However, what I experted is: 111 222

Re: A problem about warning information.

2005-01-05 Thread Perl Hacker
Thanks a lot. On Mon, 03 Jan 2005 03:21:24 -0500, Randy W. Sims <[EMAIL PROTECTED]> wrote: > Perl Hacker wrote: > > Below is my script, > > When I run the script, everything is ok. > > > > #! /usr/bin/perl âw > > > > print "111\n"; > &

Is CYGWIN a unix like environment to run PERL modules?

2005-01-17 Thread Zapa Perl
Hello, I installed CYGWIN on Win-2000 hoping to have a Linux like environment and run PERL. I was expecting to click on the CYGWIN desktop icon and get a prompt window and move on. but that is not what I got. when I double click on CYGWIN desktop icon something flashes and disappears quickly

how do you get the prompt out of cygWIN?

2005-01-19 Thread Zapa Perl
Hi, I installed cygWIN on win-2000 but I can't figure out How to launch cygWIN command prompt window. how do you get the prompt? Ciao, Zapa. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'

Re: how do you get the prompt out of cygWIN?

2005-01-20 Thread Zapa Perl
when I click on cygwin.bat a window pops up but disappears fast not letting to do anything. what am I doing wrong? Zapa. Chris Devers <[EMAIL PROTECTED]> wrote: On Wed, 19 Jan 2005, Zapa Perl wrote: > I installed cygWIN on win-2000 but I can't figure out > How to launch cygW

Re: Number or string?

2005-02-22 Thread Perl Mails
iffer.pl line 19, lin e 1. Argument "gli3ak" isn't numeric in subtraction (-) at cpdiffer.pl line 19, line 1." MY QUESTIONS IS: why perl treat the numeric value in column 4 as string and how to convert it? Thanks, AG Lee The code is as below: #!/bin/perl -w #use strict; us

require or use

2006-05-09 Thread Practical Perl
Could anyone tell me what's the difference between 'use' and 'require'? And,is there any difference for these two statements? use Exporter (); require Exporter; Thank you.

How to get the file's end-lines?

2006-05-10 Thread Practical Perl
Hello,here, I want to get some numbers of end-lines from a file,under unix shell,I can do: $ tail -2000 file.txt or I can do it in perl script: my $lines = `tail -2000 file.txt`; I want to know,is there a pure perl way to do that without using the 'tail' unix command?

getter setter and database

2006-05-16 Thread Ken Perl
urn $self; } #accessor method for name sub name { my $self = shift; my $name = shift; $self->{_name} = $name if defined($name); return $self->{_name}; } My question is, should I query/update the table at the same time in above accessor method? If not, what's the best practice

Re: getter setter and database

2006-05-17 Thread Ken Perl
tt <[EMAIL PROTECTED]> wrote: On Wed, 17 May 2006 08:23:11 +0800, Ken Perl wrote: > suppose I have a table person with following columns, name, age, > salary. If use OOP [snip] > My question is, should I query/update the table at the same time in > above accessor method? Some

hashref and hash

2006-05-18 Thread Ken Perl
o a hash so I could pass on it? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>

rebless another object

2006-05-18 Thread Ken Perl
hi, how to rebless another object in current package's constructor? could somebody give me an example? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>

Re: rebless another object

2006-05-18 Thread Ken Perl
yes, this is helpful, so I won't re-bless any object now. On 5/18/06, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 5/18/06, Ken Perl <[EMAIL PROTECTED]> wrote: > how to rebless another object in current package's constructor? could > somebody give me an example?

Socket Problems

2006-05-22 Thread Practical Perl
Hello,lists, We write a simple socket script using IO::Socket module.When this script connect to peer server (both server and my scripts are in the same LAN),it always dropped and print these errors: IO::Socket::INET: connect: Connection refused IO::Socket::INET: connect: Connection timed out H

print Greek small letter alpha in html

2006-06-14 Thread Ken Perl
hi, To print Greek small letter alpha in a html page, I tried to print this in perl but not work, B1; could someone give me some clue how to make this work? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>

Re: print Greek small letter alpha in html

2006-06-14 Thread Ken Perl
thanks, it works. On 6/15/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: On Thu, 2006-15-06 at 10:04 +0800, Ken Perl wrote: > hi, > To print Greek small letter alpha in a html page, I tried to print > this in perl but not work, > B1; > > could someone give me some cl

web 2.0 module

2006-06-23 Thread Ken Perl
hi, does anybody know any mature web2.0 modules on CPAN? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>

What's this error in regex?

2006-06-26 Thread Practical Perl
Hello, I got a warning message from my perl script,it's this: Quantifier follows nothing in regex; marked by <-- HERE in m/? <-- HERE ?/ at ./.pl line 703. The 703st line is in a subroutine,the subroutine is: sub some_sub { my $arg1=shift; my $ok=0; for (@some_g

modules maillist

2006-07-03 Thread Ken Perl
asn't done that before, is this kind of maillist to ask? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>

non fixed number of properties in constructor

2006-07-19 Thread Ken Perl
;undef, }; bless $self, $class; return $self; } If we want to create new object with more other contries' currency and don't want to modify the code, for example, get more other contries' name from database, how to write my constructor method and it can live with the dynamic database? --

Re: non fixed number of properties in constructor

2006-07-19 Thread Ken Perl
; If I want to support this method, I have to modify the constructor again to add the new country, but what I am looking for is the solution that doesn't need to modify the constructor again. On 7/19/06, Rob Dixon <[EMAIL PROTECTED]> wrote: Ken Perl wrote: > > I find a difficul

Re: non fixed number of properties in constructor

2006-07-20 Thread Ken Perl
I almost got the ideas with all your replies, thanks. On 7/20/06, D. Bolliger <[EMAIL PROTECTED]> wrote: Hi Ken Ken Perl am Mittwoch, 19. Juli 2006 12:04: > ok, let me explain what I mean. Better done by inline/bottom posting, if you already got a bottom answer :-) > $account =

xml::simple declartion missed

2006-07-20 Thread Ken Perl
Joe Wrigley 17 Beable Ave. Meatball MI 82649 [EMAIL PROTECTED] 42 Henrietta Pussycat R.F.D. 2 Flangerville NY 83642 [EMAIL PROTECTED] 37 -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/> <http://learn.perl.org/first-response>

extracting NAME and DESCRIPTION sections from pod text file

2006-08-13 Thread Ken Perl
what's correct regular expression on extracting only NAME and DESCRIPTION section from pod text file? I have tried this, but failed! perl -e '$c=`pod2text /data/WebGUI/lib/WebGUI/User.pm`;$c =~ s/(NAME.*)SYNOPSIS/$1/;print $c' -- perl -e 'print unpack(u,"62V5N\"

Time::Local let me faint

2006-08-29 Thread Practical Perl
Hello,lists, Please see these two lines' output: [$ perl -Mstrict -MTime::Local -le 'print timelocal(0,0,0,31,8,2006)' Day '31' out of range 1..30 at -e line 1 $ perl -Mstrict -MTime::Local -le 'print timelocal(0,0,0,31,7,2006)' 1156953600 I translate the t

Re: Time::Local let me faint

2006-08-29 Thread Practical Perl
Thank you,:-) For the intuition I treated '8' as August in Time::Local's method...A low-level mistake. 2006/8/30, Lawrence Statton XE1/N1GAK <[EMAIL PROTECTED]>: Because SEPTEMBER only has thirty days. 0 - January; 1 - February; 2 - March; ... --L -- To unsubscribe, e-mail: [EMAIL PROTEC

get week numeration in a year?

2006-09-01 Thread Practical Perl
Hello,list, Is there a fast way to get the week numeration in a year? For example,now it's 35th week in 2006,next week is 36th week of this year then. Thanks.

READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
hi ALL, I am new to perl and I need some help from you guys, I have text file which looks like following(its about 100 lines) OUTPUTDIR=C:\Project\Module\outputdir INPUTDIR=C:\Project\Module\Inputdir Now I have to use each and every line of the text file in my perlscript as command line

Fwd: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
hi ALL, I am new to perl and I need some help from you guys, I have text file which looks like following(its about 100 lines) OUTPUTDIR=C:\Project\Module\outputdir INPUTDIR=C:\Project\Module\Inputdir Now I have to use each and every line of the text file in my perlscript as command line

Re: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

2006-10-14 Thread perl pra
thanks a lot . it works.. --perlpra On 10/14/06, Dr.Ruud <[EMAIL PROTECTED]> wrote: "perl pra" schreef: > Subject: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE. Don't shout. > Is there any other way of using the values in text file as varibales > in

how to configure the options.

2006-10-15 Thread perl pra
hi All, I have to call some perl scripts with command line arguements from another perl script. (some thing like this) perl -s -a $ENV{X} -b $ENV{Y} -c $ENV{Z} ; ( -a , -b, -c are also the arguments to call the script) ( the $ENV{x}=C:\xyz\abc,$ENV{Y}=abc,$ENV{Z}=5). I understand we

hwo to configure the Getopt:::STD options for command line arguments.

2006-10-16 Thread perl pra
hi All, I have to call some perl scripts with command line arguements from another perl script. (some thing like this) perl -s -a $ENV{X} -b $ENV{Y} -c $ENV{Z} ; ( -a , -b, -c are also the arguments to call the script) ( the $ENV{x}=C:\xyz\abc,$ENV{Y}=abc,$ENV{Z}=5). I understand we

How to pass string in command line argument.

2006-10-26 Thread perl pra
hi , I want to pass a command argument to perl script with double quotes (" ); below is my scenario my xml file is something like this .. 123 this is my name 234 this is others name my perl script is something like this my $xmlfile = "./samp1.xml";

killing processes

2006-10-27 Thread perl pra
s if i run it in unix or linux iam getting the following error kill: "`awk" is not a job kill: "{print }`" is not a job grep: write error on standard output: The pipe is being closed. need solution for above . and Is there any way in perl to kill processes independent of OS .. If there is hwo can i do that ? wating for solutions. Thanks Perl Pra

KILLING Processes in unix

2006-10-27 Thread perl pra
s if i run it in unix or linux iam getting the following error kill: "`awk" is not a job kill: "{print }`" is not a job grep: write error on standard output: The pipe is being closed. need solution for above . and Is there any way in perl to kill processes independent of OS .. If there is hwo can i do that ? wating for solutions. Thanks Perl Pra

Re: How to pass string in command line argument.

2006-10-27 Thread perl pra
I tried this but no luck.. let me tell me explain my problem in detail to you guys so that you may give me the apt solution. i have perl script that searches given string (the string should be passed in command line argument), The string should be sent to the script with double quotes

<    1   2   3   4   5   6   7   >