Re: How to Generate An Expression to A LOL?

2011-04-25 Thread Shlomi Fish
Hi z sway, On Monday 25 Apr 2011 19:28:47 z sway wrote: > Thank you for being so patient to a newbie. > It's just homework and I think it's not that deep because the course is > only about Perl. > I'm interested in parsing, but I haven't learnt much about it yet. > OK, thanks for keeping me (and

Re: Direct access of individual method documentation in a module

2011-04-25 Thread John SJ Anderson
On Mon, Apr 25, 2011 at 20:16, heyi xiao wrote: > Is there any convenient way to check the documentation (and source code) for > individual method of an installed module? For instance, bioperl has a module > called Bio::Seq. I may simply check the documentation of this whole module > using: >

Re: Alternatives to eval

2011-04-25 Thread Shawn H Corey
On 11-04-25 09:20 PM, siegfr...@heintze.com wrote: Is there a counterpart to the lisp set function in Perl? Not really. Consider using a hash instead. $hash{x} = 23; To view your data structures, use Data::Dumper; use Data::Dumper; print Dumper( \%hash ); Data::Dumper is a standard module

Re: Alternatives to eval

2011-04-25 Thread Jeff Pang
2011/4/26 : > > > $s = "$x = 23"; > eval $s; > > eval a string is considered a bad way. You may store and read the variables to and from a pure Perl data structure storage, like Tie::Hash. Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: begi

Alternatives to eval

2011-04-25 Thread siegfried
Ooops, I forgot to use plain text when I sent this the first time. Sorry if this appears twice. I want read some variable names and values out of a flat (xml) file and assign them. I suppose I could write $s = "$x = 23"; eval $s; Is this the best way? Is there a better way? In lisp, I would

Re: Direct access of individual method documentation in a module

2011-04-25 Thread Jim Gibson
On 4/25/11 Mon Apr 25, 2011 5:16 PM, "heyi xiao" scribbled: > Hello all, > Is there any convenient way to check the documentation (and source code) for > individual method of an installed module? For instance, bioperl has a module > called Bio::Seq. I may simply check the documentation of this

Re: how to parse complex table

2011-04-25 Thread charley
On Apr 23, 11:56 am, abuali...@gmail.com (galeb abu-ali) wrote: > thank you for the advice Shawn, I'll try what you suggest! > BTW, it's not homework, It's supporting metadata for my research and I'm > trying to parse it in a format that will be easier to lookup later. > > thanks again > > galeb H

Re: Fwd: how to parse complex table

2011-04-25 Thread galeb abu-ali
thanks Peter, code looks elegant now! "like chiseling away everything that is not David from a block of marble :-) " very cool reference!

Direct access of individual method documentation in a module

2011-04-25 Thread heyi xiao
Hello all, Is there any convenient way to check the documentation (and source code) for individual method of an installed module? For instance, bioperl has a module called Bio::Seq. I may simply check the documentation of this whole module using: perldoc Bio::Seq But now i am interested in gett

Re: perl interview questions

2011-04-25 Thread Shlomi Fish
On Monday 25 Apr 2011 18:07:51 Akhthar Parvez K wrote: > On Monday 25 Apr 2011, Shlomi Fish wrote: > > On Sunday 24 Apr 2011 21:01:57 Shawn H Corey wrote: > > > On 11-04-24 10:36 AM, Akhthar Parvez K wrote: > [ snip ] > > > > I still think I have to disagree. Sometimes interviewers ask purposely

Re: Template::Simple .04 and File::Slurp .16 are on cpan

2011-04-25 Thread Uri Guttman
> "CH" == Chap Harrison writes: CH> On Apr 25, 2011, at 10:59 AM, Uri Guttman wrote: >> another real world template is the boilerplate in contracts >> and legal documents. they have the document written out and fill in all >> the blank parts. it is a very common concept and well worth

Re: Template::Simple .04 and File::Slurp .16 are on cpan

2011-04-25 Thread Chap Harrison
On Apr 25, 2011, at 10:59 AM, Uri Guttman wrote: > another real world template is the boilerplate in contracts > and legal documents. they have the document written out and fill in all > the blank parts. it is a very common concept and well worth knowing how > to do it in perl. I'm fully on board

Re: How to Generate An Expression to A LOL?

2011-04-25 Thread z sway
Thank you for being so patient to a newbie. It's just homework and I think it's not that deep because the course is only about Perl. I'm interested in parsing, but I haven't learnt much about it yet. 2011/4/25 Shlomi Fish > Hi "Z", > > you replied to me in private (unintentionally, I presume), s

Re: Template::Simple .04 and File::Slurp .16 are on cpan

2011-04-25 Thread Uri Guttman
> "CH" == Chap Harrison writes: CH> On Apr 25, 2011, at 3:12 AM, Uri Guttman wrote: >> finally, i am very proud of the code quality in those two modules. feel >> free to look at them, ask me questions, flame the code, etc. i have no >> issues with anything said about my code. CH>

Re: Template::Simple .04 and File::Slurp .16 are on cpan

2011-04-25 Thread Jim Gibson
At 9:46 AM -0500 4/25/11, Chap Harrison wrote: I'm not saying that an introduction to templates belongs in the module documentation, but can you (or somebody else) tell me what, generically, a "Template" module is for? A Template is a method for generating files with dynamic content. In th

Re: perl interview questions

2011-04-25 Thread Akhthar Parvez K
On Monday 25 Apr 2011, Shlomi Fish wrote: > On Sunday 24 Apr 2011 21:01:57 Shawn H Corey wrote: > > On 11-04-24 10:36 AM, Akhthar Parvez K wrote: [ snip ] > > I still think I have to disagree. Sometimes interviewers ask purposely > > obscure questions not to see if you know the answer but to see w

Re: Template::Simple .04 and File::Slurp .16 are on cpan

2011-04-25 Thread Chap Harrison
On Apr 25, 2011, at 3:12 AM, Uri Guttman wrote: > finally, i am very proud of the code quality in those two modules. feel > free to look at them, ask me questions, flame the code, etc. i have no > issues with anything said about my code. I'm an "advanced beginner" and I'm embarrassed to say that

Re: Nature of this list

2011-04-25 Thread Jenda Krynicky
From: Raymond Wan > >> Well, online bullying is a problem, but I don't think that saying "Your > >> Perl > >> code sucks" or "Please don't post misleaing answers to people's Perl > >> questions" would qualify as online bullying. > ... > > The point is this:  some crimes hinge upon what's going on

Re: Nature of this list

2011-04-25 Thread Raymond Wan
On Mon, Apr 25, 2011 at 04:38, David Christensen wrote: > On 04/24/2011 02:36 AM, Shlomi Fish wrote: >> I also think it is a better idea to put someone who is acting in an >> abusive >> manner on manual moderation before actually banning them. > Good idea.  Does the beginners@perl.org mailing list

Re: How to Generate An Expression to A LOL?

2011-04-25 Thread Shlomi Fish
Hi "Z", you replied to me in private (unintentionally, I presume), so I'm CCing the list on my reply (I hope it's OK). On Monday 25 Apr 2011 12:07:54 z sway wrote: > Hi,sorry I hadn't said it clearly,what I want to do is to generate a LOL > from an expression and try* *not to use any extra modul

Re: how to rename files that contain chinese characters

2011-04-25 Thread Shlomi Fish
Hi eventual, On Monday 25 Apr 2011 06:22:54 eventual wrote: > Hi, > I am using windows operating system. > I wanted to rename some files within certain directories and my files > contain chinese characters. After renaming, I could not see those chinese > characters, what must I do to retain those

Re: Help with indentation

2011-04-25 Thread Shlomi Fish
Hi Uri, On Monday 25 Apr 2011 05:18:21 Uri Guttman wrote: > > "BF" == Brian Fraser writes: > BF> http://ideone.com/YGq85 > > a small request. you can post link to pastebots but also paste the code > in emails here. i can reply and quote code better staying in my emailer > than going back a

Re: how to rename files that contain chinese characters

2011-04-25 Thread eventual
Tks Brian, with the link you provide, I then change the control panel/regional and language settings/language for non-unicode programs to "chinese (simplified prc)" and now I can change files with chinese characters. Thanks From: Brian Fraser To: eventual

Template::Simple .04 and File::Slurp .16 are on cpan

2011-04-25 Thread Uri Guttman
hi all, normally i wouldn't announce module releases on the beginner's list but i think this is appropriate. i have released Template::Simple .04 to cpan. many times you see mention of using templates to solve problems with replacing text with values. there are many template modules and systems