RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
Well, All I have to say is that my basic understanding of perl language and how to download a link may be very little, and probably I do need a tutor as you said! But I'm not here to spoil any domain reputation. My query was a genuine one! And I'm really surprised to get this reply :( Anyway, a

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread mtbr1221
(OP failed to call my attention to the fact that OP sent this to me off list) (and I already unknowingly replied this directly to OP) (so, here it is now for list) (grins, people :-) On Thu, 22 Dec 2005 10:52 , Dhanashri Bhate <[EMAIL PROTECTED]> sent: > >I surely missing something very simple! :

Logic and Rules

2005-12-21 Thread The Ghost
I know this isn't a beginners question, but I didn't see any other mailing lists for it. I have about 40 flow charts I need to make into code. The flow charts are all hierarchies, some are part of each other so really it's maybe 4 big hierarchies. Anyway, what is the best way to accompli

RE: CSV Help

2005-12-21 Thread Charles K. Clarkson
Brian Bernard wrote: : Hello, : : I am new to this list. Can someone please let me know if the built-in : functionality of Perl can print OUT to CSV but control what the CSV : looks like? Actually, I know that I can output to CSV but I want the : first row in the CSV to

CSV Help

2005-12-21 Thread Brian Bernard
Hello, I am new to this list. Can someone please let me know if the built-in functionality of Perl can print OUT to CSV but control what the CSV looks like? Actually, I know that I can output to CSV but I want the first row in the CSV to be a certain color and the text to be a certain color al

RE: WWW::Mechanize, save image - WORKAROUND

2005-12-21 Thread Dhanashri Bhate
Hi All, Just to let all know, I found a kind of workaround, I get the image link with the help of WWW::Mechanise find_image finction. And then issue curl command to save the picture (as below). There must be a better ( and yes! Portable ) way to do this, but this works for me for now :) =

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
Hello Alan, Thanks a lot :) I just copied your script, and added a get on the image link. It gives me success and I can save the content. ( Pls see attached script ), but what I receive in the file is not a picture but the complete page :( I surely missing something very simple! :(( Dhanashri

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
Hello Alan, Thanks a lot :) I just copied your script, and added a get on the image link. It gives me success and I can save the content. ( Pls see attached script ), but what I receive in the file is not a picture but the complete page :( I surely missing something very simple! :(( Dhanashri

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
Hello, DB> If I do as you have mentioned above, $mech-success is False. DB> I tried to get the complete the URL by concatenating the $imageref->base and DB> $imageref->url. And then issue get on this complete url. DB> DB> my $imageurl = $imageref->url ; DB> my $imagebase = $imag

DIfference between system and back tick

2005-12-21 Thread swayam panda
Hi All, What is the difference between foreach ( system ls) { if (/1.pl/) { print ;}} Here the output is all the file of the CWD. and foreach ( ` ls`) { if (/1.pl/) { print ;}} Here is output is only 1.pl Please explain this to me Thanks & Regards Swayam -- To unsubscribe,

Re: taking references to functions

2005-12-21 Thread John Doe
John W. Burns am Mittwoch, 21. Dezember 2005 16.22: > I'm building a diagnostic medical questionnaire using Perl Tk. Need to > create a Tk callback process for several hundred sub routines. > I've experimented with the following code. It does recognize the two > subroutines "foo" and "moo", but c

taking references to functions

2005-12-21 Thread John W. Burns
I'm building a diagnostic medical questionnaire using Perl Tk. Need to create a Tk callback process for several hundred sub routines. I've experimented with the following code. It does recognize the two subroutines "foo" and "moo", but calls only the first subroutine "foo"; it does give correct a

Re: Problem with retrieving output from commands using net::telnet

2005-12-21 Thread Stephen Kratzer
Your regexes are probably not doing what you expect them to. You're using character classes, so it's waiting for the device to return a one character prompt that matches any one of the characters from the class. Try something like /password[: ]*$/i and something similar for other prompts. > All

Re: script not seeing files -- kind of long

2005-12-21 Thread John Doe
Zielfelder, Robert am Mittwoch, 21. Dezember 2005 14.15: > Greetings, Hallo Robert > A little background first: > > > > I have a bunch of PERL scripts that I use to automate tasks performed by > CAM software. I have one HP-UX 10.20 server, a Linux (Red Hat ES 3.0) > server, and several Linux (Re

Re: Looking for good Perl projects

2005-12-21 Thread Robert Hicks
I know the Perl foundation has some coding tasks that need doing. Try with them. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

script not seeing files -- kind of long

2005-12-21 Thread Zielfelder, Robert
Greetings, A little background first: I have a bunch of PERL scripts that I use to automate tasks performed by CAM software. I have one HP-UX 10.20 server, a Linux (Red Hat ES 3.0) server, and several Linux (Red Hat WS 3.0) workstations. The HP-UX server runs a custom database package tha

re: WWW::Mechanize, save images from a page

2005-12-21 Thread Peter Scott
On Tue, 20 Dec 2005 23:33:15 +, mtbr1221 wrote: > But in looking at the doc: > > > $mech->find_image() > > Finds an image in the current page. It returns a WWW::Mechanize::Image > object which describes the image. If it fails to find an image it returns > undef. > > > That quote from doc

Re: need help with using system()

2005-12-21 Thread John Doe
Poonam Pahil am Mittwoch, 21. Dezember 2005 12.32: > Thanks for replying John. > > iam having a very limited choice in modifying the design. hello Poonam Sorry, I meant the design of processes/subprocesses which would be bad if one could modify the parent's environment. > let me explain. > I w

Re: need help with using system()

2005-12-21 Thread Poonam Pahil
yup thats quite possible. Though I wanted to do all from a single perl script.But, its also not so bad to create another wrapper which will be using the script. Thanks Poonam On 12/21/05, Xavier Noria <[EMAIL PROTECTED]> wrote: > > On Dec 21, 2005, at 12:32, Poonam Pahil wrote: > > > Thanks for r

Re: need help with using system()

2005-12-21 Thread Xavier Noria
On Dec 21, 2005, at 12:32, Poonam Pahil wrote: Thanks for replying John. iam having a very limited choice in modifying the design.let me explain. I want to write a perl script to automate the build process. The normal manner is - modify a file. set up the build env.(use a *.cmd file) start t

Re: need help with using system()

2005-12-21 Thread Poonam Pahil
Thanks for replying John. iam having a very limited choice in modifying the design.let me explain. I want to write a perl script to automate the build process. The normal manner is - modify a file. set up the build env.(use a *.cmd file) start the build. I don't want to perform all this manually

Re: need help with using system()

2005-12-21 Thread John Doe
Poonam Pahil am Mittwoch, 21. Dezember 2005 10.34: > Iam using the system command to call an application(windows) that sets up > the enviorment. as per my knowledge, a subshell would be created & hence > the modified enviorment would be lost once system returns to the parent > perl script. > > How

need help with using system()

2005-12-21 Thread Poonam Pahil
Iam using the system command to call an application(windows) that sets up the enviorment. as per my knowledge, a subshell would be created & hence the modified enviorment would be lost once system returns to the parent perl script. How can i modify the parent process enviornment in perl using syst