Collecting variables from Hash

2012-01-22 Thread Pradeep Patra
ccess. If ($success == 244) { return 1; } else { return 0; } Can anybody help me in this regard? Regards Pradeep -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

How to merge multiple array elements

2012-01-15 Thread Pradeep Patra
=(@array1,@array."$i+1"); ---> To add array1 to array 4 and return final array } Regards Pradeep -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Comparing Perl Hashes

2011-12-24 Thread Pradeep Patra
ues of hash2(for exp-d=0).I want to push this to a library(preferably a single method) so that I can reuse it. Is there a better way to do this?. Can anybody help me in this regard? Any source code will be of great help. Regards Pradeep -- To unsubscribe, e-mail: beginners-unsubscr...@per

hi

2011-09-14 Thread pradeep
Hi, I do have a doubt , Input: 1,2,3,4,5,6 output: 1-2,3-4,5-6 1-2,3-5,4-6 1-2,3-6,4-5 1-3,2-4,5-6 1-3,2-5,4-6 1-3,2-6,4-5 1-4,2-3,5-6 1-4,2-5,3-6 1-4,2-6,3-5 1-5,2-3,4-6 1-5,2-4,3-6 1-5,2-6,3-4 1-6,2-3,4-5 1-6,2-4,3-5 1-6,2-5,3-4 Can anyone help me in this -- To unsubscribe, e-mail: be

Re: problem with the script in counting

2008-04-05 Thread pradeep reddy
Hi, Thanks for the reply. Can this impletemented in shell script alsso? - Original Message From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Saturday, 5 April, 2008 3:01:41 PM Subject: Re: problem with the script in counting pradeep reddy wrote: > I

problem with the script in counting

2008-04-05 Thread pradeep reddy
at how to find the occurance of column values in "swi" file. Plz help me. Ex: The file has following column values: 123 324 123 123 435 435 The output should be 123 is 3 times 324 is 1 time 435 is 2 times Thanks & Regards, Pradeep. Share files, take polls, and make

problem with the script in counting

2008-04-05 Thread pradeep reddy
at how to find the occurance of column values in "swi" file. Plz help me. Ex: The file has following column values: 123 324 123 123 435 435 The output should be 123 is 3 times 324 is 1 time 435 is 2 times Thanks & Regards, Pradeep. Bollywood, fun, friendship, sports a

problem with the script in counting

2008-04-05 Thread pradeep reddy
at how to find the occurance of column values in "swi" file. Plz help me. Ex: The file has following column values: 123 324 123 123 435 435 The output should be 123 is 3 times 324 is 1 time 435 is 2 times Thanks & Regards, Pradeep. Meet people who discuss and share yo

Re: Can't locate CPAN.pm in @INC

2008-02-01 Thread Pradeep Mishra
thanks adrano. you are correct. have installed perl-cpan. it is resolved now. thanks again, On Feb 1, 2008 8:17 AM, Adriano Ferreira <[EMAIL PROTECTED]> wrote: > On Feb 1, 2008 10:47 AM, Pradeep Mishra <[EMAIL PROTECTED]> > wrote: > > hi all > > > > I h

Can't locate CPAN.pm in @INC

2008-02-01 Thread Pradeep Mishra
hi all I have been trying to install spamassin using ...perl -MCPAN -e shell which throws an error Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-t

perl with mysql which takes a file as a input that contains t he info to create the tables

2007-11-16 Thread Pradeep Kumar
hi all > > i am creating a perl script which takes the input from the file to > create tables, inserting values into the database. As you all know the > only procedure for taking input from a file (using perl script) into > MySQL database is through (?) place holders. > for example , > > $sth=$dbh

Re: perl with mysql which takes a file as a input that contains the info to create the tables

2007-10-31 Thread Pradeep Kumar
hi Rob, What exactly i wanted to do is.. to take a input from a file of format : INPUT.txt : Details> name , id INTEGER, area VARCHAR(32) prady,2039,india sandy,2398,india sam,1234,aussie Rob,2345,Eng extraDetails>name1 VARCHAR(12), name2 VARCHAR(12) prady,sandy sandy,Rob Rob,sam sam,prady in

perl script to modify LDAP.

2007-07-26 Thread Pradeep Mishra
Hi I am a beginner in perl and have tough time in writing a script which i need urgently. I would like to know the perl script to 1)modify passswords in LDAP for multiple users taking input from another file(which contains usernames and new passwords ) Thank you in advance. Regards Pradeep

doubt on time structures

2006-12-20 Thread pradeep reddy
Hello, I used the follwoing code: struct rusage startusage, stopusage; getrusage(RUSAGE_SELF, &startusage); getrusage(RUSAGE_SELF, &stopusage); cpu_delta_user=((stopusage.ru_utime.tv_sec*100) + stopusage.ru_utime.tv_usec) -(startUsage.ru_utime.tv_sec*1

Re: perl script execution issue

2006-12-19 Thread pradeep reddy
: > On Tue, Dec 19, 2006 at 03:48:49PM +0530, pradeep reddy wrote: > > Yes Ruud, I edited it in windows environment, as a text pad format, then I > > saved it. > > > > How can i correct this issue. > > > > -reddy. > > > At the prompt, type >

Re: perl script execution issue

2006-12-19 Thread pradeep reddy
Its worked for me now. I run the following command on unix to convert. perl -i -pe 's/\x0d\x0a/\x0a/g' Thx all for your support. Thx Cook,Krishnan,Ruud. -reddy. - Original Message From: H Krishnan <[EMAIL PROTECTED]> To: pradeep reddy <[EMAIL PROTECTED]>; Dr.

Re: perl script execution issue

2006-12-19 Thread pradeep reddy
Cook, I run the command what you sent.But still the same problem persists.I cant execute the script in linux machine directly by its name, by i can do it on windows machine.. -reddy. - Original Message From: Owen Cook <[EMAIL PROTECTED]> To: pradeep reddy <[EMAIL PROTE

Re: perl script execution issue

2006-12-19 Thread pradeep reddy
issue pradeep reddy schreef: > The same perl script runs fine on windows environment. But on > linux machine its giving this problem. Did you edit it in a Windows environment? Then a bunch of CRs might have creeped in your script, corrupting your shebang and more. -- Affijn, Ruud &q

Re: perl script execution issue

2006-12-19 Thread pradeep reddy
s. -reddy. - Original Message From: Owen Cook <[EMAIL PROTECTED]> To: pradeep reddy <[EMAIL PROTECTED]> Cc: beginners@perl.org Sent: Tuesday, 19 December, 2006 1:29:15 PM Subject: Re: perl script execution issue On Tue, Dec 19, 2006 at 06:18:54AM +, pradeep reddy wrote: > Hi, &

Re: perl script execution issue

2006-12-18 Thread pradeep reddy
th "#!/usr/bin/env perl", these are executing with no issues. -reddy. - Original Message From: Owen <[EMAIL PROTECTED]> To: pradeep reddy <[EMAIL PROTECTED]> Cc: beginners@perl.org Sent: Tuesday, 19 December, 2006 11:32:17 AM Subject: Re: perl script execution issu

Re: perl script execution issue

2006-12-18 Thread pradeep reddy
Hi, Error was: ": No such file or directory." I made the changes in the code of script.I did not change any environment variable and any execution path. The script has "#!/usr/bin/env perl" at the top. -Reddy. - Original Message From: Larry Johnson <[EMAIL

perl script execution issue

2006-12-18 Thread pradeep reddy
Hello all, I have a starnge problem. I have a perl script.Previously I was executing it, by simply giving its name with .pl (pradeep.pl).Recently I made few changes and, from that time, I could not execuite it directly by its name. Now I need to give "perl http://messenger.yahoo.com/download.p

Re: Fw: Reg:need to find the particular pattern in a line and assign to variables.

2006-10-25 Thread pradeep reddy
leartool mklabel $RECURSE $REPLACE -version $Version $label $pathName; } Anyways, as per Bolliger's i/p I with try to use $_ instead of with outLine varible. Thx PERL team. -Pradeep. - Original Message From: D. Bolliger <[EMAIL PROTECTED]> To: beginners@perl.org Sent: We

Re: Fw: Reg:need to find the particular pattern in a line and assign to variables.

2006-10-25 Thread pradeep reddy
sing this logic ---if ($outLine =~ / cleartool: Error: Unable to create label /) , to check for the patten in part of line..Is this correct? Thanks & Regards, Pradeep. - Original Message From: John W. Krahn <[EMAIL PROTECTED]> To: Perl Beginners Sent: Wednesday, 25 October,

Fw: Reg:need to find the particular pattern in a line and assign to variables.

2006-10-24 Thread pradeep reddy
Hello all, Iam new member to this group and also beginner to PERL. Here is my question,plz let me know your inpus: I have a PERL script which gives error report at the end. Here is the output. cleartool: Error: Unable to create label "Pradeep" on "/vob/rootinclude/paer.c&quo

RE: Playing with Numbers

2003-11-11 Thread Sethi, Pradeep
How about my $formatted = sprintf("%05d", $number); -Original Message- From: SilverFox [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 1:14 PM To: [EMAIL PROTECTED] Subject: Playing with Numbers Hi all, i'm trying to figure out how to test if a number is five digits and i

setting environment variables in IIS

2003-08-10 Thread Sethi, Pradeep
Hi, How can I set up environment variables to be used in the script in IIS ? Thanks, Pradeep

Re: need advice - https authentication

2003-06-18 Thread Pradeep Sethi
I am sure, somebody will point you to the right direction here. -Pradeep "[ Muliawan Sjarif ]" <[EMAIL PROTECTED]> wrote: Hi, Thank you for your reply. Actually I did try authorization_basic. But, it seems that the website doesn't use authorization_basic scheme. B

RE: A Doubt on Regular Expression

2003-05-31 Thread Sethi, Pradeep
seems, it matches any path with 2 sub dirs, ending with xyz and populates $1 with the second dir for instance if $cur_dir = "/cgi-bin/dev/xyz" then $1 is set to "dev" -Original Message- From: Hari Krishnaan [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 9:27 AM To: [EMAIL PROTE

Re: 1) Automated FTP 2) txt to html 3) pstools vs WMI

2003-03-24 Thread Pradeep Goel
- Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 12:35 AM Subject: Re: 1) Automated FTP 2) txt to html 3) pstools vs WMI > From: "Pradeep Goel" <[EMAIL PROTECTED]> >

Re: 1) Automated FTP 2) txt to html 3) pstools vs WMI

2003-03-24 Thread Pradeep Goel
::FTP also to check out an automated ftp ,will ask you or list with next set of problems :)) . Thanks & Regards Pradeep "Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Pradeep Goel wrote: > > Hi All ,pls answer if u know anything out of 3 dif

Re: 1) Automated FTP 2) txt to html 3) pstools vs WMI

2003-03-24 Thread Pradeep Goel
- Original Message - From: "Janek Schleicher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 24, 2003 2:57 PM Subject: Re: 1) Automated FTP 2) txt to html 3) pstools vs WMI > Pradeep Goel wrote at Mon, 24 Mar 2003 11:24:15 +0530: > >

1) Automated FTP 2) txt to html 3) pstools vs WMI

2003-03-23 Thread Pradeep Goel
cripts in WMI. Is there any adv of using WMI in place of pstools ?. Thanks in Advance Regards Pradeep

Re: not able to set repository

2003-03-05 Thread Pradeep Goel
its 3.0.1 & perl is 5.8 & my time is quite bad these days :) Thanks & regards Pradeep - Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 6:10 PM Subject: Re: not able to set re

not able to set repository

2003-03-05 Thread Pradeep Goel
My HTTP_proxy is set to http://proxyname:portno like say http://jen:8210 Thanks & Regards Pradeep HP, bangalore ,India Ph :91-80- 2052262

Tieregistry etc on unix server ? possible

2003-02-28 Thread Pradeep Goel
Hi All Can win32::Tieregistry ( & other win32 modules) be installed on unix boxes i .e a program that takes information from many remote windows machines etc be reside on a unix server ? any script examples are most welcome Regards & Thanks Pradeep

Re: system info: cpu, ram, disk - Google for "AdminMisc GetMemoryInfo() "

2003-02-25 Thread Pradeep Goel
m remote machines u may use TieRegistry . I was thinking of implementing it as if(unix) { unix funcn } elsif(windows) { win32 funcn } http://www.the-labs.com/Perl/ThePerlJournal/Issue_08_Win32/ & http://www.roth.net/conference/lisant/1999/ have good examples for you . It must be able

1) cygwin , 2) sprite/DBM

2003-02-17 Thread Pradeep Goel
ng sprite/jprite ? Thanks & Regards Pradeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

remote win32 execn - os/patches/prods/diskusage/users

2003-02-11 Thread PRADEEP GOEL
PRODUCTS: swlist PATCHES: ls -m $patchDir DISK USAGE: bdf -t , df , df -k ,df -t USERS LOGGED IN : who , last Thanks & Regards Pradeep 91-80-2052262 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

win 32 system info (TieRegistry etc) - functions/commands HELP needed

2003-02-10 Thread PRADEEP GOEL
istry can be used for most of them) . 2) whether for using TieRegistry for remote systems , do i need some permissions on remote system. ? Thanks & Regards Pradeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

PLS DON't OPEN mail with sub - ANTECEDENTES ACADMICOS EDUCACIN BSICACompleta - virus infected

2003-02-10 Thread PRADEEP GOEL
PLS DON't OPEN mail with sub - ANTECEDENTES ACADMICOS EDUCACIN BSICACompleta from some Marcos Contreras <[EMAIL PROTECTED]> - its virus infected I don't know from where i got this mail - although successfully removed in my system . pls fwd it to other lists - if feel so

remote execn on win nt machines for their info

2003-02-03 Thread PRADEEP GOEL
Hi All Does anybody knows how to use perl or other script for remote execn on nt machines to get some info of machines , may be say from registery , etc . Regds Pradeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: program logic not right-

2003-01-30 Thread PRADEEP GOEL
Dear Senior Programmer Analyst did it solves the problem ? I don't think so . there is one very simple logical flow if ($temp_unit eq 'C' or 'c'){ should be if ($temp_unit eq 'C' or $temp_unit eq 'c'){ that's all the second one is from F to C in last print command is well understood. - Ori

HELP - installing Win32::AdminMisc

2003-01-29 Thread PRADEEP GOEL
/Win32-AdminMisc.ppd?' (y/N): y Installing package 'http://www.roth.net/perl/packages/Win32-AdminMisc.ppd'... Error installing package 'http://www.roth.net/perl/packages/Win32-AdminMisc.ppd' : Could not locate a PPD file for package http://www.roth.net/perl/packages/Win3 2-AdminMis

Win32::AdminMisc, schedule task / cron job,

2003-01-28 Thread PRADEEP GOEL
hi I haven't installed anything yet now i have some better idea i am trying to install - without success i downloded from the ftp site- extracted & then giving command C:\Perl\bin>perl ppm install C:\pradeep\net\perl\Bin\AdminMisc_5006/win32-daemon .ppd

dynamic NT updating - exe , schedule task / cron job,

2003-01-27 Thread PRADEEP GOEL
ys_name1 10.20 Reserved by :pradeep Email id :pradeep Extn :2262 Purpose :CV Patch Testing Start date:03-01-2003 Close date:31-01-2003 Removal : Installation : Previous User :pravin      most/all of the info is updated every day dynamically by execut

a good link for general reference on perl commands

2003-01-14 Thread PRADEEP GOEL
http://www.ugu.com/sui/ugu/show?I=tip.1105&F=1 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

checking if a file is empty

2003-01-10 Thread PRADEEP GOEL
e file RF1 is empty or not ? # open(RFh1,"RF1") or die "Not able to open RF1 \ n"; my @pachs = ; my($num3) = $pachs[0]=~ /_(\d+)$/; I want $num3 to be 0 if RF1 is empty . thanks & rgds Pradeep -- To unsubscribe, e-mail: [EMAIL

Re: a Bug in PERL

2002-12-03 Thread PRADEEP GOEL
- Original Message - From: "PRADEEP GOEL" <[EMAIL PROTECTED]> To: "Paul Johnson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 6:27 PM Subject: Re: a Bug in PERL > > - Original Message - > From: &

Re: a Bug in PERL

2002-12-03 Thread PRADEEP GOEL
- Original Message - From: "Paul Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 5:13 PM Subject: Re: a Bug in PERL > > PRADEEP GOEL said: > > > > - Original Message --

Re: a Bug in PERL

2002-12-02 Thread PRADEEP GOEL
7;t leave it as it is , it does pop out & at last leave it empty > Enjoy, > Chris > # thanks Pradeep > On Monday, December 2, 2002, at 05:31 AM, Paul Johnson wrote: > > > > > PRADEEP GOEL said: > >> If i am not wrong somewhere , there is a

Re: a Bug in PERL

2002-12-02 Thread PRADEEP GOEL
- Original Message - From: "Paul Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 5:01 PM Subject: Re: a Bug in PERL > > PRADEEP GOEL said: > > If i am not wrong somewhere , th

a Bug in PERL

2002-12-02 Thread PRADEEP GOEL
k it's intensional feature , else it should also not be able to pop the only element , if it has one , but it does. Regards Pradeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

remsh - sh - ARGV from one script to another -

2002-11-20 Thread PRADEEP GOEL
0] & ARGV[1] in the called script ( i.e. installP.pl ) ARGV[0] appears as blank - nothing how to pass them - a really big & crucial problem , is problem because of "sh" or remsh or ?? please suggest me possible causes and/or solutions thanks pradeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problems with variables

2002-11-19 Thread PRADEEP GOEL
Hi Nandita I think you just want to concat no.s to ids probably this may help $em = "nandita\@yahoo.com" ; ## " \ " to remove spcl meaning of @ $i = "001"; $emid = $em.$i; or## $emid1 = "$em$i"; print " $emid or $emid1 "; - Original Message - From: "Nandita Shenvi" <[E

passing args from one script to another

2002-11-15 Thread PRADEEP GOEL
"sh -c /script2.pl ) simply I want to pass some arguements say $ARGV[2] , $ARGV[3] from script1 to script2 will it be ok if i pass like system("remsh $remhost -l root \"sh -c /script2.pl ( $ARGV[2] , ARGV[3] ))? Thanks pradeep -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

a simple pattern matching quesn

2002-11-12 Thread PRADEEP GOEL
i have a file(say f1) containing patch names pach_2377 pach_2676 pach_3897 I want to check if there are(is)  patch _id(s)  which r greater than given patch_id (say  :  pach_2579)  pls tell me how to do that in perl i.e.  while () {  $ch = $_;  if ($given_patchid  gt $ch )    ## pls tell

rcp says permission denied , or unknown host

2002-11-06 Thread PRADEEP GOEL
anyone can tell me the possible causes. Regards Pradeep

depot?

2002-11-05 Thread PRADEEP GOEL
Thanks Aman can u also tell me some site to download perl 5.8 gz or tar.gz for hp ux 11.00 i downloaded some , but they r depot.gz - i don't know about depot- or how to use them Regards Pradeep - Original Message - From: "Aman Thind" <[EMAIL PROTECTED]> To: &

could 5.8 make a difference in place of 5.6 ?

2002-11-05 Thread PRADEEP GOEL
make a difference(such as script may not run) if it s an upgraded 5.8 version instead of 5.6 ? Regards Pradeep

$::MY_VARIABLE

2002-04-19 Thread Sethi, Pradeep
what's the difference between: $::MY_VARIABLE and my $MY_VARIABLE if they're both declared in main()?! Obviously they're treated differently by perl because $::MY_VARIABLE does not equal $MY_VARIABLE. anyone? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

substitution of values

2002-03-06 Thread Pradeep Sethi
Hi All, I have a string $str="first value %s and second is %s, substitute them"; and an array @vars=('I', 'II'); i want to substitute the array with the respective values any regular expression or join etc ? Thanks in advance Pradeep ______

RE: replacing last 4 digits

2002-03-04 Thread Sethi, Pradeep
Thank you very much Japhy for this solution now how can I replace digits with formatted Xs like : 123412341234 to --1234 and 0123412341234 to --X1234 using regular expressions. Thanks in Advance Pradeep -Original Message- From: Jeff 'japhy' Piny

replacing last 4 digits

2002-03-04 Thread Sethi, Pradeep
Hi, I have a number 342389842452. how do a substitute of everything with X but last 4 digits using regular expressions like 2452 Thanks Prad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

die handler

2002-02-27 Thread Pradeep Sethi
get the output : first : goofoobar at out.pl line 233. second : I want to have the three arguments in an array. can somebody tell what am I doing wrong ? Thanks Pradeep _ Join the world’s largest e-mail service with MSN Hotmail

RE: perldoc manual

2002-02-20 Thread Pradeep Sethi
do : perldoc -f push print function help -Original Message- From: Scott Lutz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 4:32 PM To: Beginners (E-mail) Subject: perldoc manual Where can one find a good reference to the perldocs? I want to find out about "push", so I

RE: Study group for motivated people wanting to learn Perl.

2002-02-05 Thread Pradeep Sethi
/(.*?)\s*=\s*(.*)/ and $var{$1} = $2 while ; did u mean ? /(.*?)\s*=\s*(.*)/ and $var->{$1} = $2 while ; -Pradeep -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 12:33 PM To: Kevin Werckman Cc: [EMAIL PROTE

mailing list for Object Oriented Perl

2002-01-03 Thread Pradeep Sethi
Hi All, I was wondering, is there a mailing list dedicated to Obejct Oriented Perl ? Thanks Prad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

getting lines from a file

2001-12-10 Thread Pradeep Sethi
With this code, I get : #!/usr/bin/perl -w my $ordfile=shift || die "unable to open : $!s\n"; open (LIST, "<$ordfile") || die "unable to open file $ordfile : $!\n"; while () { # chomp; # a) my $line=$_; print STDERR "\nline : *** $line ***"; } line : *** 6M2FD9XV *** line : ***

RE: get current dir

2001-11-16 Thread Pradeep Sethi
I am on unix I am doing this : my $dir=`pwd`; but I was looking, if there is a function in perl. > -Original Message- > From: Rex Arul [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 5:36 PM > To: Pradeep Sethi; [EMAIL PROTECTED] > Subject: Re:

get current dir

2001-11-16 Thread Pradeep Sethi
what is the function in perl that returns current dir ? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: comand line arguments, but with web

2001-11-14 Thread Pradeep Sethi
Your question is related how to do CGI programming in perl. There are two ways in which, we can pass values to a Perl web page. POST & GET, passing the values in the address bar like www.mysite.com/show?name=peter is get and passing thru a web form page normally uses post. Both of these variables

url encode

2001-10-20 Thread Pradeep Sethi
Is there a similar function in perl like PHP - urlencode / urldecode ? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: References? (fwd)

2001-09-04 Thread Pradeep Reddy
erences. you can see "perlreftut" manpage. pradeep. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multi dimension arrays

2001-09-03 Thread Pradeep Reddy
; ); is a two dimentional array. if you want to access hello $array[0]->[0] of course threre are other ways. 'There's more than one way to do it.' --Programming Perl pradeep. On Mon, 3 Sep 2001, Gordon Barr wrote: > Is there a way of handling these in perl?

Re: Where are the printf function formatting options / rules? (fwd)

2001-09-02 Thread Pradeep Reddy
man page. "man perlfunc" now search for printf.(type /printf) Thanks, pradeep. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problems installing DBI help urgently required!!!!!!

2001-05-05 Thread Pradeep RajagopalaPanicker
Hello, I unzipped the DBI.zip into a dir and unpacked the DBI.jar file. then I used ppm install DBI ,but it says Error installing package could not locate a ppd file for package DBI. Can someone give a suggestion. [EMAIL PROTECTED] ___