RE: Start a New Thread for a New Question (WAS: This is one of the things ...)

2016-05-13 Thread Walker, Michael E
Thank you for letting me know. -Original Message- From: Shawn H Corey [mailto:shawnhco...@gmail.com] Sent: Friday, May 13, 2016 10:01 AM To: beginners@perl.org Subject: Re: Start a New Thread for a New Question (WAS: This is one of the things ...) On Fri, 13 May 2016 13:20:15 +

Re: Start a New Thread for a New Question (WAS: This is one of the things ...)

2016-05-13 Thread Shawn H Corey
On Fri, 13 May 2016 13:20:15 + "Walker, Michael E" wrote: > Hi, > > What framework are you all using for database development? When > tracking this thread back to the original message, I thought, "Nice > syntax." I am overall new to Perl, but am learn

New Year's Resolution - Learn Modern Perl

2014-12-20 Thread Andrew Solomon
Start with 'Hello World' then develop a search engine in Perl and an online game powered by Dancer2. With instant feedback and a personal mentor you'll soon be writing Modern Perl like a professional. Just create an account at Geekuni then enrol before Sunday January 4 using the coupon code NYR2

Re: Append new line at end of non-quoted text

2014-05-23 Thread Shawn H Corey
On Fri, 23 May 2014 15:52:11 -0700 Jim Gibson wrote: > Use the 'use warnings;' pragma in your program instead of '-w' on the > first line. That way, you can control which messages are issued. > Some modules have to do unsafe things to get the job done; it's the only way. But they do have the co

Re: Append new line at end of non-quoted text

2014-05-23 Thread Jim Gibson
Please post messages to the list, not to me personally. That way, you will get better answers sooner. On May 23, 2014, at 3:13 PM, Sherman Willden wrote: > Thank you, Jim; > > How do I get rid of the warning message without getting rid of the -w switch? Use the 'use warnings;' pragma in your p

Re: Append new line at end of non-quoted text

2014-05-23 Thread Hal Wigoda
print pi * 2, "\n"; On Fri, May 23, 2014 at 4:45 PM, Sherman Willden wrote: > Disclaimer: I am 67 and not in school. I am doing this for my own > satisfaction. > > How do I get a new line at the end of a non-quoted text. I am doing the > following: > Use Math::Trig;

Re: Append new line at end of non-quoted text

2014-05-23 Thread Jim Gibson
On May 23, 2014, at 2:45 PM, Sherman Willden wrote: > Disclaimer: I am 67 and not in school. I am doing this for my own > satisfaction. > > How do I get a new line at the end of a non-quoted text. I am doing the > following: > Use Math::Trig; > print pi * 2; > print

Append new line at end of non-quoted text

2014-05-23 Thread Sherman Willden
Disclaimer: I am 67 and not in school. I am doing this for my own satisfaction. How do I get a new line at the end of a non-quoted text. I am doing the following: Use Math::Trig; print pi * 2; print "\n"; How do I get the new line on the same line of code? I could do my $my_pi_time

Re: Brand New

2014-03-30 Thread Maurice McCarthy
porarily allow" . . . > > > > Mike > > > On 3/23/2014 9:45 PM, beginners-digest-h...@perl.org wrote: > >Hi, > > > >I'm brand new to Perl. I'm reading perldoc and working through Simon > >Cozens online > >book to get me started. Even t

Re: Brand New

2014-03-25 Thread Alek Trishan
as a browser. > >When you see "This site requires Javascript", click >on "options" in the lower right, go to the bottom >of the list, and select "Temporarily allow" . . . > > > >Mike > > >On 3/23/2014 9:45 PM, beginners-digest-h...@perl.

Re: Brand New

2014-03-25 Thread Mike Flannigan
, go to the bottom of the list, and select "Temporarily allow" . . . Mike On 3/23/2014 9:45 PM, beginners-digest-h...@perl.org wrote: Hi, I'm brand new to Perl. I'm reading perldoc and working through Simon Cozens online book to get me started. Even though it is 14

Re: Brand New

2014-03-23 Thread Maurice McCarthy
ty issues). The mentionning "required > Javascript" is the browser-side one. As far as I know, Perl is more used as > a server-side language. > > > > S�bastien > > > On Mon, Mar 24, 2014 at 9:45 AM, Maurice McCarthy > wrote: > >> Hi, >> >>

Re: Brand New

2014-03-23 Thread Sebastien Feugere
s a server-side language. Sébastien On Mon, Mar 24, 2014 at 9:45 AM, Maurice McCarthy wrote: > Hi, > > I'm brand new to Perl. I'm reading perldoc and working through Simon > Cozens online > book to get me started. Even though it is 14 years old and some syntax has &g

Brand New

2014-03-23 Thread Maurice McCarthy
Hi, I'm brand new to Perl. I'm reading perldoc and working through Simon Cozens online book to get me started. Even though it is 14 years old and some syntax has changed in the meantime, figuring out how to make the operations work is getting me into perl. At present I've got

Re: Reading a config file and exporting it updated with the new/changes values in the same format.

2014-03-03 Thread Wernher Eksteen
t;prod" or "test" 2. Get the input values for new hostnames that will be added to the config along with it's contactgroups and tag_criticality values. 3. Add the new hostnames along with it's contactgroups and tag_criticality values passed as input values to the script.

Re: Reading a config file and exporting it updated with the new/changes values in the same format.

2014-03-03 Thread Wernher Eksteen
Hi Jim, The format of the config file is like this: *Config file example1:* For one host in this case named hostname1 belonging to 4 contactgroups (group1 to group4), < begin config file example 1 > host_contactgroups += [ ( 'group1', ['hostname1'] ), ( 'group2', ['h

Re: Reading a config file and exporting it updated with the new/changes values in the same format.

2014-03-03 Thread Jim Gibson
On Mar 3, 2014, at 8:47 AM, Wernher Eksteen wrote: > Hi Shlomi, > > Thank you for the pointers. I do want to learn Python as well when I get a > chance. This "framework" I'm writing now will automate things to a great > extend eventually freeing up loads of my daily operations time so I can fo

Re: Reading a config file and exporting it updated with the new/changes values in the same format.

2014-03-03 Thread Wernher Eksteen
on based web > front > > end tool. I would like to add/remove hosts to/from this config file using > > Perl. > > > > The idea I have is for Perl to read this config file, and instead of > > adding/replcing values to the original config file, to re-write the >

Re: Reading a config file and exporting it updated with the new/changes values in the same format.

2014-03-03 Thread Shlomi Fish
file using > Perl. > > The idea I have is for Perl to read this config file, and instead of > adding/replcing values to the original config file, to re-write the config > file with the > latest hostname that was added or removed to a new config file in the same > format so tha

Reading a config file and exporting it updated with the new/changes values in the same format.

2014-03-02 Thread Wernher Eksteen
values to the original config file, to re-write the config file with the latest hostname that was added or removed to a new config file in the same format so that the Python based web tool can read it. This exceeds my knowledge of Perl at the moment and hope I can learn the ways from the Perl Masters

Re: Creating a new module

2014-01-01 Thread Sebastien Feugere
ing trouble with a date, > > they were using ANSI Date a variant of the Julian Date originally from > > Cobol (yep that old - and still in the latest OS) > > > > So what I did is plain simple I created a new Perl module and added to > > the DateTime::Format::Epoch locally

Re: Creating a new module

2013-12-30 Thread Shlomi Fish
t of the Julian Date originally from > Cobol (yep that old - and still in the latest OS) > > So what I did is plain simple I created a new Perl module and added to > the DateTime::Format::Epoch locally so every time my code runs it would > find it out. > > Now I want to make

Creating a new module

2013-12-30 Thread Julio Molina Soler
id is plain simple I created a new Perl module and added to the DateTime::Format::Epoch locally so every time my code runs it would find it out. Now I want to make it available for the community, you never know when is going to be used. So my questions, - what's the next step? I started a m

Fwd: [Perlweekly] #51 - What's new on the Perl Beginners' Site?

2012-07-25 Thread Andy Bach
Another nice beginners site and a great weekly perl digest list to subscribe to: What's new on the Perl Beginners' Site <http://bit.ly/SyaFxg> Shlomi Fish maintains the http://Perl-Begin.org site, an alternative to the 'official' learn.perl.org site. Once in a while he

Re: What's new on the Perl Beginners' Site

2012-07-09 Thread shawn wilson
ish wrote: > The last update on the news feed for [http://perl-begin.org/ The Perl > Beginners’s site] was almost a year ago. While the site continued to improve, > I neglected writing a new entry until now, so I hope this one will compensate > for that. > > So without further

What's new on the Perl Beginners' Site

2012-07-09 Thread Shlomi Fish
The last update on the news feed for [http://perl-begin.org/ The Perl Beginners’s site] was almost a year ago. While the site continued to improve, I neglected writing a new entry until now, so I hope this one will compensate for that. So without further ado, here is what is new: # We now

Re: new topic same subject

2012-05-28 Thread Uri Guttman
please always put a proper subject in your emails. i can't help with excel stuff but i can't know to skip this email because the subject didn't say that. thanx, uri -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.

new topic same subject

2012-05-28 Thread Ken Furff
I am writing a script to pull data from a spreadsheet and use it in an array. the code looks like this: @{$sheet->{Cells}[$row]}; my @indexes = (2 .. (2+4-1)); my @dcells = @{$sheet->{Cells}[$row]}[@indexes]; open FILE, ">>feckyou.txt";

new topic same old subject: excel module

2012-05-28 Thread Ken Furff
I am using this code to try to access certain columns in a spreadsheet to load into an array for comparison @{$sheet->{Cells}[$row]}; my @indexes = (2 .. (2+4-1)); my @dcells = @{$sheet->{Cells}[$row]

Re: how to check new file generated

2012-04-02 Thread lina
On Mon, Apr 2, 2012 at 11:35 PM, Jim Gibson wrote: > At 4:08 PM +0800 4/2/12, lina wrote: >> >> I wish there is an alternative way in linux without installing use >> Mail::Sendmail; >> >> on bash I used >> >> mail lina.lastn...@gmail.com < report.txt > > > If that works for you on your system, the

Re: how to check new file generated

2012-04-02 Thread Jim Gibson
At 4:08 PM +0800 4/2/12, lina wrote: I wish there is an alternative way in linux without installing use Mail::Sendmail; on bash I used mail lina.lastn...@gmail.com < report.txt If that works for you on your system, then just execute the same thing using system: system('mail lina.lastn...@

Re: how to check new file generated

2012-04-02 Thread lina
I wish there is an alternative way in linux without installing use Mail::Sendmail; on bash I used mail lina.lastn...@gmail.com < report.txt Thanks, On Mon, Apr 2, 2012 at 4:07 PM, lina wrote: > Thanks now better. Just the send email still not work. With > Mail::Sendmail installed. > > sendma

Re: how to check new file generated

2012-04-02 Thread lina
Thanks now better. Just the send email still not work. With Mail::Sendmail installed. sendmail( From=> 'lina.lastn...@gmail.com', To => 'lina.lastn...@gmail.com', Subject => 'Step coming close', Message => "Dangerous", ); Do I need set up something extra? > > > > John > -

Re: how to check new file generated

2012-04-02 Thread John W. Krahn
lina wrote: Hi, Hello, At some directory, I wish to check are there some new file generated with step* if no new generated, I wish it sleep for a while if there are some new files generated, I wish it to send am email to myself. Here is what I have came up so far, #!/usr/bin/env perl

how to check new file generated

2012-04-02 Thread lina
Hi, At some directory, I wish to check are there some new file generated with step* if no new generated, I wish it sleep for a while if there are some new files generated, I wish it to send am email to myself. Here is what I have came up so far, #!/usr/bin/env perl use strict; use warnings

Re: Inserting a new data structure in a bless reference

2012-01-15 Thread David Christensen
On 01/13/2012 07:25 PM, Parag Kalra wrote: my $obj = FooBar->new; $obj->{'new_key'} = 'some_value' Now I am not sure if that is the correct way of inserting a new data structure into an already bless reference 1. FooBar may or may not be implemented as a hashref.

Re: Inserting a new data structure in a bless reference

2012-01-14 Thread Shawn H Corey
On 12-01-13 10:25 PM, Parag Kalra wrote: The simplest way I thought of expressing this question is through Pseudo-script so here it is: use strict; use warnings; use FooBar; my $obj = FooBar->new; Do something ... $obj->{'new_key'} = 'some_value' No

Re: Inserting a new data structure in a bless reference

2012-01-13 Thread Jeff Peng
于 2012-1-14 11:25, Parag Kalra 写道: use FooBar; my $obj = FooBar->new; Do something ... $obj->{'new_key'} = 'some_value' Now I am not sure if that is the correct way of inserting a new data structure into an already bless reference I don't thin

Inserting a new data structure in a bless reference

2012-01-13 Thread Parag Kalra
The simplest way I thought of expressing this question is through Pseudo-script so here it is: use strict; use warnings; use FooBar; my $obj = FooBar->new; Do something ... $obj->{'new_key'} = 'some_value' Now I am not sure if that is the correct w

Re: Guidance for a New Programmer/Perl User

2011-12-19 Thread Randal L. Schwartz
> "Ken" == Ken Peng writes: Ken> I am 33 years old. Can I have the chance to see Perl6's official Ken> stable release in my left life? Nobody is ever going to declare Perl 6 "Stable". It will always be a moving target. Much the same way that Perl 5 is now... Perl 5 is hardly "stable". :)

Re: Guidance for a New Programmer/Perl User

2011-12-18 Thread Dr.Ruud
On 2011-12-15 22:53, Rajeev Prasad wrote: perl5 is dead end OTOH, Perl 5 is alive and kicking. See for example: http://www.perlfoundation.org/ http://www.slideshare.net/Tim.Bunce/perl-myths-200909 http://www.booking.com/hotel/de/sonnenhof-perl.en.html -- Ruud -- To unsubscribe, e-mail: begi

Re: Guidance for a New Programmer/Perl User

2011-12-16 Thread David Christensen
On 12/15/2011 11:34 PM, abhay vyas wrote: Which book of Llama are you reading? pls tell me the title as I am also on same page as yors. I read "Learning Perl", 2 e., ~13 years ago. David -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h.

Re: Guidance for a New Programmer/Perl User

2011-12-16 Thread Chankey Pathak
On Dec 16, 3:39 pm, short...@gmail.com (Ken Peng) wrote: > 2011/12/16 Shlomi Fish : > > > Regarding Perl 6 - you are right that it is taking a long time, and that > > some > > people feel its implementations are not usable for them yet. But it doesn't > > mean you can't use Perl 5 now, or that Per

Re: Guidance for a New Programmer/Perl User

2011-12-16 Thread John SJ Anderson
On Friday, December 16, 2011 at 09:18 , Mark Tiesman wrote: > Not to sound like I am complaining, but aren't we kind of wondering of > my original topic? I will say that Perl 5 is the road I need to travel > since it is heavily utilized here at the University. > Yes, parts of the discussion ha

Re: Guidance for a New Programmer/Perl User

2011-12-16 Thread Mark Tiesman
Not to sound like I am complaining, but aren't we kind of wondering of my original topic? I will say that Perl 5 is the road I need to travel since it is heavily utilized here at the University. I do want to say thank you for the links at other reading recommendations that have been provided

Re: Guidance for a New Programmer/Perl User

2011-12-16 Thread Shlomi Fish
Hi Rob, On Thu, 15 Dec 2011 22:27:22 + Rob Dixon wrote: > Decades of programming in many languages have convinced me that Perl > excels in every aspect. But I have to agree with Rajeev that Perl 6 has > become a theory and needs evidence of practical application. > > In my mind there is no

Re: Guidance for a New Programmer/Perl User

2011-12-16 Thread Ken Peng
2011/12/16 Shlomi Fish : > Regarding Perl 6 - you are right that it is taking a long time, and that some > people feel its implementations are not usable for them yet. But it doesn't > mean you can't use Perl 5 now, or that Perl 6 will never be ready, or that it > didn't have a positive influence

Re: Guidance for a New Programmer/Perl User

2011-12-16 Thread Shlomi Fish
27;t have a positive influence on Perl 5. > > for a new person, this could mean less confidence in perl and more interest > towards php etc... > ty. Well, I still think it turned out that it wasn't a good idea to call Perl 6, "Perl 6", but it's too la

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread David Christensen
On 12/15/2011 07:54 AM, Mark Tiesman wrote: Hi all. I recently started a job that at some point is going to require me knowing and using Perl. I am pretty green as a programmer and need some guidance to get me going on the right foot. Currently I am reading the Llama book to grease the skids so

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Madrigal, Juan A
? > > Rob > > On 15/12/2011 21:53, Rajeev Prasad wrote: >> Shlomi, >> >> all of you said is correct, but some may get a negative impression. >> it shows as if perl5 and perl 6 are two very different. perl5 is dead >> end (coz perl 6 is not like 5), per

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Rob Dixon
nd perl 6 are two very different. perl5 is dead > end (coz perl 6 is not like 5), perl6 which is in making for so long > is still not ready. > > for a new person, this could mean less confidence in perl and more > interest towards php etc... > > ty. > Rajeev > > From: Shlom

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Anneli Cuss
> > for a new person, this could mean less confidence in perl and more > interest towards php etc... > ty. > Rajeev > Hi Rajeev, The idea is not to curry favour with one language or another, but help a person get on with what they're doing. If Mark needs to know Perl for h

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Rajeev Prasad
Shlomi, all of you said is correct, but some may get a negative impression. it shows as if perl5 and perl 6 are two very different. perl5 is dead end (coz perl 6 is not like 5), perl6 which is in making for so long is still not ready. for a new person, this could mean less confidence in perl

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Shlomi Fish
Hi Rajeev, On Thu, 15 Dec 2011 15:20:24 -0500 Brendan wrote: > How quickly Perl 6 knowledge can be put to good use probably depends on where > you work. I don't think there are many businesses where they are looking to > convert their Perl 5 code to Perl 6 in the immediate future. > Rajeev

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Brendan
re, you should start by reading Rakudo etc. i.e. >perl6 > > > > > From: Mark Tiesman >To: beginners@perl.org >Sent: Thursday, December 15, 2011 9:54 AM >Subject: Guidance for a New Programmer/Perl User > >Hi all.  I recently started

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Rajeev Prasad
Mark, i think with an eye on future, you should start by reading Rakudo etc. i.e. perl6 From: Mark Tiesman To: beginners@perl.org Sent: Thursday, December 15, 2011 9:54 AM Subject: Guidance for a New Programmer/Perl User Hi all.  I recently started a job

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Brendan Gilroy
Here are some new videos: http://szabgab.com/perl_tutorial.html The standard stuff is here: http://www.perl.org/learn.html http://learn.perl.org/first_steps/<http://learn.perl.org/> And this is what I was originally looking for: http://perl-tutorial.org/ It's a curated list of tut

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Mark Tiesman
shlomi, Thanks for the link. I have bookmarked:-) On 12/15/2011 11:56 AM, Shlomi Fish wrote: Hi Mark, On Thu, 15 Dec 2011 09:54:17 -0600 Mark Tiesman wrote: Hi all. I recently started a job that at some point is going to require me knowing and using Perl. I am pretty green as a programmer

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Shlomi Fish
Hi Mark, On Thu, 15 Dec 2011 09:54:17 -0600 Mark Tiesman wrote: > Hi all. I recently started a job that at some point is going to require > me knowing and using Perl. I am pretty green as a programmer and need > some guidance to get me going on the right foot. Currently I am reading > the

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Madrigal, Juan A
The Learning Perl by Randal Schwartz Video series is a nice intro: http://shop.oreilly.com/product/0636920014430.do Along with the companion book Learning Perl (6ed): http://shop.oreilly.com/product/0636920018452.do Lynda.com also offers Perl 5 Essential Training by Bill Weinman: http://www.lyn

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Dr.Ruud
On 2011-12-15 16:54, Mark Tiesman wrote: general information on learning to program and Perl How to Perl: http://learn.perl.org/ which mentions: http://learn.perl.org/books/ -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h.

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Chankey Pathak
*http://www.chankeypathak.com/search/label/Perl* * * On Thu, Dec 15, 2011 at 10:20 PM, Agnello George wrote: > On Thu, Dec 15, 2011 at 9:24 PM, Mark Tiesman > wrote: > > Hi all. I recently started a job that at some point is going to require > me > > knowing and using Perl. I am pretty green as

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Agnello George
On Thu, Dec 15, 2011 at 9:24 PM, Mark Tiesman wrote: > Hi all.  I recently started a job that at some point is going to require me > knowing and using Perl.  I am pretty green as a programmer and need some > guidance to get me going on the right foot.  Currently I am reading the > Llama book to gr

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Tessio Fechine
2011/12/15 Mark Tiesman > Hi all. I recently started a job that at some point is going to require > me knowing and using Perl. I am pretty green as a programmer and need some > guidance to get me going on the right foot. Currently I am reading the > Llama book to grease the skids so to speak,

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Torqued
perlmonks.org is a good site. regards... /om On Dec 15, 2011, at 21:38, Mark Tiesman wrote: > Thanks Frank. I'll add that to my list. ;-) > > Mark > > On 12/15/2011 10:07 AM, frank cui wrote: >> I found Perl By Example 4th Edition book pretty help, and you may want to >> give a look on tha

Re: Guidance for a New Programmer/Perl User

2011-12-15 Thread Mark Tiesman
Thanks Frank. I'll add that to my list. ;-) Mark On 12/15/2011 10:07 AM, frank cui wrote: I found Perl By Example 4th Edition book pretty help, and you may want to give a look on that one. Frank On Thu, Dec 15, 2011 at 11:54 AM, Mark Tiesman mailto:mark.ties...@doit.wisc.edu>> wrote:

Guidance for a New Programmer/Perl User

2011-12-15 Thread Mark Tiesman
Hi all. I recently started a job that at some point is going to require me knowing and using Perl. I am pretty green as a programmer and need some guidance to get me going on the right foot. Currently I am reading the Llama book to grease the skids so to speak, but am looking for addition ad

Re: Removing out new lines

2011-12-07 Thread C.DeRykus
On Dec 1, 6:43 am, whereismel...@gmail.com (Melvin) wrote: > Hi I have a file in the following format > > 111 > 222 > 333 > > Now I need to print the following output from the given input file as > 111 222 333 > The versatile File::Slurp can be a handy shortcut: # File::Slurp will croak if there'

Re: Removing out new lines

2011-12-06 Thread Melvin Simon
Thanks a lot Rob. "chomp" command did the job as you suggested. Also, to add I manually did it in gvim using the "j" in command mode. Thanks, Melvin On Sun, Dec 4, 2011 at 3:14 AM, Rob Dixon wrote: > On 01/12/2011 14:43, Melvin wrote: > >> Hi I have a file in the following format >> >> 111 >>

Re: Removing out new lines

2011-12-03 Thread John W. Krahn
Melvin wrote: Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 $ echo "111 222 333" | perl -l040pe1 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Par

Re: Removing out new lines

2011-12-03 Thread Rob Dixon
On 01/12/2011 14:43, Melvin wrote: Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Parsing the file and pushing the in

Removing out new lines

2011-12-03 Thread Melvin
Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Parsing the file and pushing the inputs to a string array. However since

Re: What's new on http://perl-begin.org/

2011-07-22 Thread Shlomi Fish
Hi Jennifer, replying in public. Thanks for not top posting. On Thu, 21 Jul 2011 20:21:38 -0430 Jennifer Maldonado wrote: > 2011/7/21 Shlomi Fish > > 11. We're now maintaining the sources of the Perl Beginners' Site in [a > > bitbucket.org repository](http://perl-begin.org/source/#vcs) and the

Re: What's new on http://perl-begin.org/

2011-07-21 Thread Jennifer Maldonado
added [a Page](http://perl-begin.org//exercises/) with links to > **exercises and challenges**. > > now I have homework to do > 3. There's a new topical page about [Modules and > Packages](http://perl-begin.org//topics/modules-and-packages/). > > 4. [A page about using Per

Re: What's new on http://perl-begin.org/

2011-07-21 Thread Shlomi Fish
Hi Natal, Replying in public (though you may opt to reply in private). On Fri, 22 Jul 2011 00:12:21 +0200 Natal Ngétal wrote: > 2011/7/21 Shlomi Fish : > > 11. We're now maintaining the sources of the Perl Beginners' Site in [a > > bitbucket.org repository](http://perl-begin.org/source/#vcs) an

Re: What's new on http://perl-begin.org/

2011-07-21 Thread Natal Ngétal
2011/7/21 Shlomi Fish : > http://perl-begin.org/ is a site for Perl Beginners, that aims to collect the > Internet's best resources for learning Perl. Here are the major changes to it > since the last update: It's very cool. > 1. The book [Modern Perl](http://perl-begin.org//books/#modern-perl) is

What's new on http://perl-begin.org/

2011-07-21 Thread Shlomi Fish
(http://perl-begin.org//tutorials/modern-perl/) of it, under the CC-by-nc-sa licence is available on Perl-Begin, thanks to [chromatic](http://www.modernperlbooks.com/). 2. We added [a Page](http://perl-begin.org//exercises/) with links to **exercises and challenges**. 3. There's a new topical

Re: new here

2011-05-06 Thread Sandip Bhattacharya
On Fri, May 6, 2011 at 11:43 PM, wrote: > Can someone tell me, where is the fault, please? And for the case, there are > 80 data´s in the line, is there a shorter style to find & change them? > You showed a slash between the numbers but mentioned earlier that the numbers can be in any format in

Re: new here

2011-05-06 Thread Uri Guttman
> "TL" == Thomas Lingmann writes: TL> Hi, TL> try something like TL> my @str = ( TL> "test [0.4\\9.0]" TL> ); why the array for the data? if you had multiple tests, i can see that but you only show one of them TL> foreach (@str) { even in simple examples it is better to u

Re: new here

2011-05-06 Thread Thomas Lingmann
Hi, try something like my @str = ( "test [0.4\\9.0]" ); foreach (@str) { if ( ($leaf1, $leaf2) = $_ =~ m{ (\d+\.\d)\\(\d+\.\d) }x ) { print $leaf1, "\n"; print $leaf2, "\n"; } } -- Thomas * wolken.f...@web.de [06.05.2011 20:16]: &

Re: new here

2011-05-06 Thread Shawn H Corey
On 11-05-06 02:13 PM, wolken.f...@web.de wrote: if ($in =~ /(-?\d+\.\d)\(-?\d+\.\d)/) Try: if( $in =~ /(\d+\.\d+)\\(\d+\.\d+)/ ) You need two backslashes to match one. -- Just my 0.0002 million dollars worth, Shawn Confusion is the first step of understanding. Programming is as

new here

2011-05-06 Thread wolken . flug
Hi all, I´m new here and my English is not the best. However, I would like to get some help for my perl-problems. I want to write a script which is finding data´s like "0.1" or "46.7" in a string and declare them as variables, which are to be changed and wrote back. The st

Re: cgi or new stuff?

2011-02-05 Thread Octavian Rasnita
From: "Jim Green" > Hello, > I wrote simple cgi scripts before but want to go further, I want to > learn a little bit systematic web programming, I found catalyst and > ORMs, do you guys think with those I don't need to learn javascript, > ajax etc? Catalyst is a web framework that help you to d

Re: cgi or new stuff?

2011-02-04 Thread Brandon McCaig
On Fri, Feb 4, 2011 at 5:15 PM, Jim Green wrote: > Hello, > I wrote simple cgi scripts before but want to go further, I want to > learn a little bit systematic web programming, I found catalyst and > ORMs, do you guys think with those I don't need to learn javascript, > ajax etc? Disclaimer: I'm

Re: cgi or new stuff?

2011-02-04 Thread jbiskofski
eventually your webapps are going to need some type of interface functionality. something really basic can be, having a checkbox that selects all the checkboxes in a group. that kind of thing you can only do with javascript. catalyst is going to introduce a lot of new concepts to you if youre new

cgi or new stuff?

2011-02-04 Thread Jim Green
Hello, I wrote simple cgi scripts before but want to go further, I want to learn a little bit systematic web programming, I found catalyst and ORMs, do you guys think with those I don't need to learn javascript, ajax etc? Thanks! Jim -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: New Document: "How to Start Contributing to or Using Open Source Software"

2011-01-17 Thread Jeremiah C. Foster
On Mon, Jan 03, 2011 at 05:28:06PM -0600, Alvaro Mantilla Gimenez wrote: > On Tue, 28 Dec 2010, Shlomi Fish wrote: > > >On Monday 27 Dec 2010 21:44:05 Alvaro Mantilla Gimenez wrote: > >>Hi, > >> > >> I think it is not fair to pointing the reader out directly to Linux. > >>There are other systems

Re: New Document: "How to Start Contributing to or Using Open Source Software"

2011-01-04 Thread Alvaro Mantilla Gimenez
On Tue, 28 Dec 2010, Shlomi Fish wrote: Date: Tue, 28 Dec 2010 02:55:32 From: Shlomi Fish To: beginners@perl.org Cc: Alvaro Mantilla Gimenez Subject: Re: New Document: "How to Start Contributing to or Using Open Source Software" On Monday 27 Dec 2010 21:44:05 Alvaro Mantil

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-03 Thread Raymond Wan
because it actually interests me to > write open source software, but meh. Well, maybe the discussion is "stupid", but it is certainly not irrelevant. If you have an interest in open source software, then I think you will agree that open source software isn't just about having s

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-02 Thread Octavian Rasnita
ortant for the mailing list and you can impose a rule that makes other members' life harder, say your opinion clearly and show that you don't care about those members. I love to hear that. > It's just too much work to try. Much work? For what? To be able to read the new message

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-02 Thread Octavian Rasnita
From: "Raymond Wan" On Sun, Jan 2, 2011 at 00:06, Octavian Rasnita wrote: > Better say that bottom-post is an old habit (and advanced programmers usually > have old habits and not the newbies) and that the rules are enforced by the > advanced programmers because they can help the others, and th

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-02 Thread Brandon McCaig
On Sun, Jan 2, 2011 at 9:39 AM, Raymond Wan wrote: > An extension to your reasoning is that there aren't just two groups of > users on this list -- advanced and newbies -- but multiple levels. > Beginners who don't follow the advanced programmers' rules may have > questions that intermediate progr

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-02 Thread Raymond Wan
On Sun, Jan 2, 2011 at 00:06, Octavian Rasnita wrote: > Better say that bottom-post is an old habit (and advanced programmers usually > have old habits and not the newbies) and that the rules are enforced by the > advanced programmers because they can help the others, and they want to > everyon

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-01 Thread Jenda Krynicky
From: "Octavian Rasnita" > From: "Jenda Krynicky" > >> There was a period when it was OK to follow that old netiquette > >> that said that bottom-posting is the good way, but now it isn't. > > > > Because you said so? > > Yes. Me and many others. > > I bottom post (on Perl - related mailing li

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-01 Thread Octavian Rasnita
From: "Jenda Krynicky" >> And by the way, there was a period when it was OK to say words like "black" >> but now it isn't. ... > > And it was a much better period. Fuck newspeak and fuck political > correctness. Rose, the same as shit, under any other name would smell Better for who? For yo

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-01 Thread Brian Fraser
People. Go -f>@+?*<.-&'_:$#/%! yourselves. How about some more Perl, and a lot less fucking drama? At least be original (or copypaste from Stack Overflow[0]) and do this on topic, folks. By the way, happy new year! [0] http://stackoverflow.com/questions/234075/what-is-your-best-

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-01 Thread Jenda Krynicky
From: "Octavian Rasnita" > This answer is very good for "Top posts don't bother me as much as > those who don't trim the quotes." also. :-) When top-posting, the > advantage is that it is not important how many messages remain at the > bottom, exactly because nobody reads what's

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-01 Thread Octavian Rasnita
From: "Shawn H Corey" > On 10-12-31 10:58 PM, jeff pang wrote: >> Another problem: >> Shawn your signature message is too long to read.:) >> >> Regards. > > Doesn't matter; nobody reads those things anyway. :) This answer is very good for "Top posts don't bother me as much as those who don't

Re: [OT] New Document: "How to Start Contributing to or Using Open Source Software"

2011-01-01 Thread Raymond Wan
On Sat, Jan 1, 2011 at 03:32, Uri Guttman wrote: >> "RW" == Raymond Wan writes: >  RW> Saying the other tutorials are garbage is quite harsh and a bit >  RW> disrespectful to the authors who presumably meant well and didn't do >  RW> it to sabotage Perl's reputation.  Maybe they aren't helpfu

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: "How to Start Contributing to or Using Open Source Software")

2011-01-01 Thread Shawn H Corey
On 10-12-31 10:58 PM, jeff pang wrote: Another problem: Shawn your signature message is too long to read.:) Regards. Doesn't matter; nobody reads those things anyway. :) -- Just my 0.0002 million dollars worth, Shawn Confusion is the first step of understanding. Programming is as m

  1   2   3   4   5   6   7   8   9   >