copy site contents into pdf file.

2007-10-11 Thread Siva Prasad
Hi Gurus, I need to copy the contents of the website and make a pdf file. Please check below for detailed explanation. Link1 Link2 If we click on the main link Link1 we get sub links Sublink1 Sublink2 So I have to click on Main link1 copy the content to pdf file

Re: Ftp to GDG dataset

2007-10-11 Thread Ken Foskey
On Thu, 2007-10-11 at 23:05 +0200, Jenda Krynicky wrote: > From: "Johnson, Reginald \(GTI\)" <[EMAIL PROTECTED]> > > I am trying to ftp files to GDG dataset on a mainframe. Whenever I try > > this my put fails with > > "failed Requested action not taken: GDG name conversion failed" > > > > > >

Re: Need advise on sending .eml attachment

2007-10-11 Thread Matthew Whipple
I'll leave Jenda to answer whether it's a good use of his module. I'd say if this works for your situation then it works (if there aren't any problems with the users whose mail you are forwarding and their mail clients). I'd still advocate the resending of the original message. I would suggest i

Re: Ftp to GDG dataset

2007-10-11 Thread Matthew Whipple
Can you upload the file manually? If you can't then that's obviously the problem. If you can then make sure that all of the settings are the same in the Perl script (the pwd, port/passive, the exact base name & suffix). Johnson, Reginald (GTI) wrote: > I am trying to ftp files to GDG dataset on

Re: Ftp to GDG dataset

2007-10-11 Thread Chas. Owens
On 10/11/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote: snip > > $ftp->put($logfile ,"SM.SCS.ADSM.LINUX.ACCTLOG(+1)" ) > > or die "put of $logfile failed ", $ftp->message; > > All I can think of is that the file name is not legal on the > mainframe. Though the message looks a

Re: Ftp to GDG dataset

2007-10-11 Thread Jenda Krynicky
From: "Johnson, Reginald \(GTI\)" <[EMAIL PROTECTED]> > I am trying to ftp files to GDG dataset on a mainframe. Whenever I try > this my put fails with > "failed Requested action not taken: GDG name conversion failed" > > > #!/usr/bin/perl > use File::Copy cp; > use Net::FTP; > > $ftp-

Ftp to GDG dataset

2007-10-11 Thread Johnson, Reginald (GTI)
I am trying to ftp files to GDG dataset on a mainframe. Whenever I try this my put fails with "failed Requested action not taken: GDG name conversion failed" #!/usr/bin/perl use File::Copy cp; use Net::FTP; @serverlist =qw{tsmpa1 tsmte1 tsmdb1 tsmob1 tsmob2 tsmbk1}; $today=(`/bi

Re: WWW::Mechanize

2007-10-11 Thread yitzle
I'm with Paul. The code looks right and no "issue" was defined. However, this line might be "wrong": my $content = get $url; A line I often use in my Mechanize using scripts is: my $content = $mech->response()->decoded_content() Truth be told, I'm not familar with the 'get' function (is that the m

Re: Need advise on sending .eml attachment

2007-10-11 Thread Panda-X
Hello again Jenda and Matthew, 2007/10/11, Jenda Krynicky <[EMAIL PROTECTED]>: > > From: Panda-X <[EMAIL PROTECTED]> > > Hi Jenda... > > > > Are you the author of Mail::Sender ?? I like it very much, that's very > > handy, as well as Config::IniHash. > > Yeah, that's me. Thanks :-) > > > Thanks fo

Re: Perl Scalars

2007-10-11 Thread Matthew Whipple
Perl references (like the Perl language itself) are higher level than their C counterparts. Pointers expose the memory address wheres references (to my knowledge and at least not normally) do not. This opens the door to pointer arithmetic and some of the black magic possible with pointers (includ

Re: WWW::Mechanize

2007-10-11 Thread Paul Lalli
On Oct 11, 8:35 am, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Hi, I've been playing around with the following script as I would like > to access data on a website that I need to log into first. > > As you can see I'm attempting to login into the main page and then > check the contents of the s

Re: Tony or Anthony

2007-10-11 Thread Venkat Saranathan
http://perldoc.perl.org/Benchmark.html -- with warm regards, Venkat Saranathan Gulf Breeze Software. On 10/10/07, newBee <[EMAIL PROTECTED]> wrote: > > On Oct 9, 8:18 pm, [EMAIL PROTECTED] (Jeff Pang) wrote: > > 2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > > > > > No need for (), so you can write:

Re: Matching 5th and 6th characted

2007-10-11 Thread Paul Lalli
On Oct 11, 9:30 am, [EMAIL PROTECTED] wrote: > Think one of the column ($arcval) value is APBNSTWAP23. I wanted to take > lines from > the csv file for those columns whose value is ST for its 5th and 6th > character. How can > I implement this in perl using reg ex. Help needed. Why are you maki

Re: Matching 5th and 6th characted

2007-10-11 Thread manojkumarg
The is what I was looking for..Thanks All - Original Message - From: Jenda Krynicky <[EMAIL PROTECTED]> Date: Thursday, October 11, 2007 7:40 pm Subject: Re: Matching 5th and 6th characted To: beginners@perl.org > Date sent:Thu, 11 Oct 2007 18:30:26 +0500 > From:

WWW::Mechanize

2007-10-11 Thread [EMAIL PROTECTED]
Hi, I've been playing around with the following script as I would like to access data on a website that I need to log into first. As you can see I'm attempting to login into the main page and then check the contents of the same page for a particular piece of data ("Your Home" in this example). It

Re: Can I modify the contents of a file, without creating a new one?

2007-10-11 Thread Rob Dixon
Ram Prasad wrote: On Oct 11, 2:37 pm, [EMAIL PROTECTED] (PeiYu Zeng) wrote: Can I modify the contents of a file, without creating a new one? This is called inplace editing Possible but not recommended. Why not? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: Matching 5th and 6th characted

2007-10-11 Thread Jenda Krynicky
Date sent: Thu, 11 Oct 2007 18:30:26 +0500 From: [EMAIL PROTECTED] Subject:Matching 5th and 6th characted To: beginners@perl.org Priority: normal > Hello List, > > Struck up with a script in using regular expression.

Re: Matching 5th and 6th characted

2007-10-11 Thread Rob Dixon
[EMAIL PROTECTED] wrote: Hello List, Struck up with a script in using regular expression. There are 6000 lines in a csv file in which using an if conditon for a particular column. Think one of the column ($arcval) value is APBNSTWAP23. I wanted to take lines from the csv file for those columns

Re: Tony or Anthony

2007-10-11 Thread Anuradha Uduwage
Thanks alot Chas... this is a great example Anu On 10/11/07, Chas. Owens <[EMAIL PROTECTED]> wrote: > > On 10/10/07, newBee <[EMAIL PROTECTED]> wrote: > > On Oct 9, 8:18 pm, [EMAIL PROTECTED] (Jeff Pang) wrote: > > > 2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > > > > > > > No need for (), so yo

Re: Can I modify the contents of a file, without creating a new one?

2007-10-11 Thread Ram Prasad
On Oct 11, 2:37 pm, [EMAIL PROTECTED] (PeiYu Zeng) wrote: > Hello, > > Can I modify the contents of a file, without creating a new one? This is called inplace editing Possible but not recommended. do this { local(@ARGV) = ($file); $^I='.BAK'; # see perdoc perlvar while(<>){ # Do edit here

Matching 5th and 6th characted

2007-10-11 Thread manojkumarg
Hello List, Struck up with a script in using regular expression. There are 6000 lines in a csv file in which using an if conditon for a particular column. Think one of the column ($arcval) value is APBNSTWAP23. I wanted to take lines from the csv file for those columns whose value is ST for it

Re: Learning Perl

2007-10-11 Thread Paul Lalli
On Oct 11, 2:30 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > 9 Oct 2007 17:59:42 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Another book that I've been using recently is Perl by Example 3rd > > Edition > > Perl by Example? do you mean the "perl cookbook"?. Uh. Call it a hunch, but I'm gues

Re: making .pm file as module

2007-10-11 Thread Paul Lalli
On Oct 11, 6:43 am, [EMAIL PROTECTED] (Siva Prasad) wrote: > Hi Gurus, > > I have a written a package (and named it as Connection.pm). > > I am calling this module in a perl script and everything is working fine. > > Now How can I make the connection.pm as module so that I can install it as > other

Re: Tony or Anthony

2007-10-11 Thread Chas. Owens
On 10/10/07, newBee <[EMAIL PROTECTED]> wrote: > On Oct 9, 8:18 pm, [EMAIL PROTECTED] (Jeff Pang) wrote: > > 2007/10/10, Dr.Ruud <[EMAIL PROTECTED]>: > > > > > No need for (), so you can write: > > > > > m/tony|anthony/i > > > > or, > > /tony/i || /anthony/i > > > > this is faster than /tony|anth

Re: dyndns perl iptable

2007-10-11 Thread Matthew Whipple
I'm not sure if I understand your problem exactly but it sounds as though you want to use dyndns to resolve client IP's so that you can allow them through your firewall for SSH connections. If this is correct than the dyndns and iptables are on separate machines and the question is misleading. Yo

Re: Can I modify the contents of a file, without creating a new one?

2007-10-11 Thread Jeff Pang
2007/10/11, PeiYu Zeng <[EMAIL PROTECTED]>: > Hello, > > Can I modify the contents of a file, without creating a new one? > Yes.You can use perl one-liner to do that, perl -pi.bak -e 'modify the current line if it match some conditions' file But actually this has been creating a new file,you jus

Re: making .pm file as module

2007-10-11 Thread Jeff Pang
there're some ways to do that.One easy way is to use module-starter,see: http://search.cpan.org/~petdance/Module-Starter-1.42/bin/module-starter 2007/10/11, Siva Prasad <[EMAIL PROTECTED]>: > Hi Gurus, > > > > I have a written a package (and named it as Connection.pm). > > > > > > I am calling th

Re: basic regex question

2007-10-11 Thread Matthew Whipple
The primary problem would be that you're match seems a bit backwards. Try "if ($line =~ m/$file/)" which will cut through any extra formatting output by dir. Jim wrote: > Hi Everyone, > > I am trying to match file & subdir names from a back tic generated list. > I never find anything and there ar

making .pm file as module

2007-10-11 Thread Siva Prasad
Hi Gurus, I have a written a package (and named it as Connection.pm). I am calling this module in a perl script and everything is working fine. Now How can I make the connection.pm as module so that I can install it as other modules that are available in CPAN. Thanks, PP

Re: Need advise on sending .eml attachment

2007-10-11 Thread Matthew Whipple
What is the sample code of what you are using? Are you using one of the Send methods? I would recommend in this case not using Mail::Sender and instead using something like Email::Send (with Email::Send::SMTP). Mail::Sender is more geared for the generation of mail messages and the required he

Re: Need advise on sending .eml attachment

2007-10-11 Thread Jenda Krynicky
From: Panda-X <[EMAIL PROTECTED]> > Hi Jenda... > > Are you the author of Mail::Sender ?? I like it very much, that's very > handy, as well as Config::IniHash. Yeah, that's me. Thanks :-) > Thanks for give me a reply, and I hope my problem can be fixed in the > Mail::Sender way. I doubt it. The

Re: Perl Scalars

2007-10-11 Thread Jenda Krynicky
From: yitzle <[EMAIL PROTECTED]> > On 10/10/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > > > > From: yitzle <[EMAIL PROTECTED]> > > > The purpose of my message was to clarify the part of the documentation > > that > > > Kaushal asked about. > > > > I think you failed on that. > > > I would t

Can I modify the contents of a file, without creating a new one?

2007-10-11 Thread PeiYu Zeng
Hello, Can I modify the contents of a file, without creating a new one? Now, the method that I modify the contents of a file is: open( READHANDLE , "sourceFile" ); open( WRITEHANDLE, ">destiFile" ); foreach my $line () { if it accords with my rules { modify $line;

Re: Bubble sort...

2007-10-11 Thread usenet
On Oct 9, 6:06 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > I'm having problems trying to figure out 'bubble sort'. http://en.wikipedia.org/wiki/Bubble_sort -- The best way to get a good answer is to ask a good question. David Filmer (http://DavidFilmer.com) -- To unsubscribe, e-mail: [

Re: Perl Scalars

2007-10-11 Thread Rob Dixon
Jenda Krynicky wrote: From: yitzle <[EMAIL PROTECTED]> The purpose of my message was to clarify the part of the documentation that Kaushal asked about. I think you failed on that. I am aware that Perl has pointers/references, as I mentioned, but the question is not /about/ pointers, but