Re: Including () and {} in strings.

2012-02-24 Thread Sean Murphy
tag. Now I know why. This is the first time I ever have used heredocs. Far better then other ways I have done it. It all works now. Sean On 25/02/2012, at 11:51 AM, Rob Dixon wrote: > On 25/02/2012 00:41, Sean Murphy wrote: >> Hi All. >> >> I have a real issue with st

Including () and {} in strings.

2012-02-24 Thread Sean Murphy
Hi All. I have a real issue with strings. I want to build a sub routine skeleton plus some test code. If I use () or {} etc. The string comes out completely messed up. The code below is for a heredoc and complains that I am trying to define a function. If I use the skeleton within a string. It

Re: Keyboard scan codes with Term::Screen

2012-02-21 Thread Sean Murphy
never you have a really > multiple choice in your code AND you're able to use Perl 5.10 or later, at > least consider using given-when construct instead of if-elsif-else one. > > -- iD > > > 2012/2/19 Sean Murphy > >> Hi All. >> >> I am trying to cre

Keyboard scan codes with Term::Screen

2012-02-19 Thread Sean Murphy
Hi All. I am trying to create my own CLI navigation program. I am using Term::Screen since it is nice and simple. I am aware that there are other modules out there which does all this. But I want to learn more about the navigation of the cursor around the screen. Initially I am working with som

Re: Editing line of text.

2012-02-08 Thread Sean Murphy
t Term::ReadLine::Gnu does, as it's an interface to a very > powerful {libreadline} term library. > > So install Term::ReadLine::Gnu module (if needed, libreadline-dev as well) > - and have fun with preput text without changing a line in Shlomi code. ) > > -- iD >

Re: Editing line of text.

2012-02-08 Thread Sean Murphy
Term::ReadLine->new ('test'); while (my $text = $rl->readline('$', 'Hello')) { print "You've given '$text'\n"; } So it appears the line in the while ignores the 'hello' parameter. Thanks for the code. Any other ideas? Sean On 08

Editing line of text.

2012-02-07 Thread Sean Murphy
Hi All. This should be a simple task. But for the life of me, I cannot work it out. I have a chunk of text in an scaler. I want to edit this text. I look at Term::ReadLine and couldn't see a way of inserting the text into the edit area. There is addhistory which adds to the history buffer. but

Console Menus using curses.

2012-01-29 Thread Sean Murphy
Hi All. I am trying to create a menu system using a range of different modules. I have used Term:Menus; which works mostly. But it is failing when I try to use a 'return => "@test ()" hash element when defining the menu. I have used Curses::UI and found the module quite good. But I could not w

Accessing IMap accounts messages via Perl.

2011-09-03 Thread Sean Murphy
All. How can I access my IMap messages from Google via Perll. I wish to extract the message body only. Sean

Creating web pages using Perl.

2011-04-23 Thread Sean Murphy
Hi all. I am starting another project and I wish to know the best method of creating a web page via Perl. I don't want to reinvent the wheel here. The perl script must generate plain 4.0 HTML code. I am not after any bells or whistles on the page. The Perl script will go through all my Audio b

Re: Scripting problem when launching links using mech.

2011-04-23 Thread Sean Murphy
HI Shlomi Thanks, I will check that out. Peace on the land is the best of course. :-) Sean - Original Message - From: "Shlomi Fish" To: Cc: "Sean Murphy" Sent: Saturday, April 23, 2011 4:54 PM Subject: Re: Scripting problem when launching links using mech. H

Scripting problem when launching links using mech.

2011-04-22 Thread Sean Murphy
Hi All. I have a script that goes to google. Performs a search. I have a regular expression that gets all the links. The first link in the array I return is ment to open the next page. But it keeps failing with an error stating it is illegal page. When I try and use lwp, it says you cannot use

Extracting properties from objects.

2011-01-24 Thread Sean Murphy
Hi All. I am wondering how do you extract properties from objects. If we use WWW:Mechanize as an example. How would you get the properties of the first link. Lets say: my $l = $mec->find_link (text => 'link'); So I would like to find out the text of the link, URL, attribs, etc. This is just a

Music Tagging Modules.

2011-01-23 Thread Sean Murphy
Hi all. I am starting a new project to expand my Perl skills. I am seeking for a module that will read Mp3 and Apple Audio files tags. If the file does not have any tags at all. I am hoping for a module that will take a sample and send it to a server on the net to identify the song/artist/etc.

Login issues with my script.

2011-01-19 Thread Sean Murphy
Hi all. I am having a bad week. things are not working as they should. Grin. Fix one problem ane another pops up. I have been successful in logging into other sites using the identity method when a loging pop-up appears. But as yet, I have not been successful in using a loging form that is bui

Re: Windows 7 64 bit Make.exe file

2011-01-19 Thread Sean Murphy
Hi guys, thanks. I have removed Active PERL and now are using strawberry to do my work. No problems with Strawberry and I can get rid of the MS C++ Express 2010 compiler. Sean - Original Message - From: "Sisyphus" To: "Sean Murphy" ; Sent: Wednesday, Janu

Windows 7 64 bit Make.exe file

2011-01-18 Thread Sean Murphy
Hi all. I cannot install any CPAN libraries because CPAN complains that I don't have a 64 bit Make executible. I have installed the Express 2010 C++ package from Microsoft. It didn't help. I couldn't find anything on the web that clearly indicated what was required to resolve this issue. Any h

Module supporting certifics

2011-01-18 Thread Sean Murphy
Hi All. what modules are out there that support ssl certificis that would work with WPL? Sean

Re: Moving through tree's using LWP

2011-01-12 Thread Sean Murphy
Hi All. I have read the page and the O'rielly book on PWL. I must be thick or something. but when I dump the content of the web page into the treeBuilder via a scaler. Then I try and print the tag. I get: HTML::Element=HASH(0x41b1074)->Tag ( ) Below is the code extract. I have included the H

Moving through tree's using LWP

2011-01-12 Thread Sean Murphy
Hi all. I posted previously on how to move in a tree by a node at a time by using HTML:TreeBuilder which is used with LWP. I wish to move by a single node and get the following info: tag of the current HTML element. Text of the HTML element. Attributes of the current HTML element. Of course, i

Re: Map function, what does it do?

2011-01-11 Thread Sean Murphy
- From: "Uri Guttman" To: "shawn wilson" Cc: "Sean Murphy" ; Sent: Tuesday, January 11, 2011 9:44 PM Subject: Re: Map function, what does it do? "sw" == shawn wilson writes: sw> On Tue, Jan 11, 2011 at 4:57 AM, Sean Murphy wrote: >> Hi

Re: what's the advantage of ORM?

2011-01-11 Thread Sean Murphy
Hi With this class, can you build relationships with it? so if I have a database that has five tables. table1 contains a list of book names, book type, etc. Table 2 contains book id and author id to establish a many to many relation ship with the author table with is table 3. Table 4 is th

Map function, what does it do?

2011-01-11 Thread Sean Murphy
Hi all. I have read the explaination of the Map function and it is still a mystry to myself on what it is for and when would you use it? All explainations I have seen in books and blogs don't make it clear. Sean -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional comm