Re: need advice - https authentication

2003-06-18 Thread Pradeep Sethi
, $headers, $hdr); print "\n\nprocessing URL: ".$url."\n\n"; $cookie->add_cookie_header($request); $response = $ua->request($request); $cookie->extract_cookies($response); my($reply); if ($response->is_success){ $reply=$response->content; print NEWFILE

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 ______

die handler

2002-02-27 Thread Pradeep Sethi
Hi , I have this in my code : local $SIG{__DIE__} = \&die_handler; and then sub die_handler { my (@vars)=@_; print STDERR "\nfirst : " . $vars[0]; print STDERR "\nsecond : " . $vars[1]; } if i give : die ('goo','foo','bar'); Then I get the output : first : goofoobar at out.pl line 233.

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 PROTECTED] Subject:

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]