Parse data

2010-09-25 Thread Santana
to extract the fields as i describe previous ? Regards, Paulito Santana -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: regexp behin assertions ?

2008-07-02 Thread obdulio santana
Hi Where is a solution(s) of this thread? It's a litle bit weird ask for help, and don't offer a "posible solution". At least with a study case would be enough, don't mentioning further details. cheers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Automation

2008-06-30 Thread obdulio santana
In windows there is a freeware, it's a clon for windows I'm using it for several months and works fine. nncronlt111.exe it's small and easy to use. I found in ten minutes google searching. if you want it, tell me how can I send to you. HTH 2008/6/30 Tobias Eichner <[EMAIL PROTECTED]>: >

Re: print spanish symbols

2008-03-14 Thread obdulio santana
2008/3/13, Jenda Krynicky <[EMAIL PROTECTED]>: > > From: "obdulio santana" <[EMAIL PROTECTED]> > > 2008/3/12, Jenda Krynicky <[EMAIL PROTECTED]>: > > > > . . I see. Sorry. Properly set is not enough when it comes to Windows. MS > Wi

Re: functions: rotate and factorial

2008-03-13 Thread obdulio santana
2008/3/13, Jenda Krynicky <[EMAIL PROTECTED]>: > > Date sent: Thu, 13 Mar 2008 18:06:27 +0530 > From: "Sharan Basappa" <[EMAIL PROTECTED]> > To: beginners@perl.org > Subject:functions: rotate and factorial > > > > Hi, > > > > I was

Re: print spanish symbols

2008-03-13 Thread obdulio santana
2008/3/12, Jenda Krynicky <[EMAIL PROTECTED]>: > > From: "obdulio santana" <[EMAIL PROTECTED]> > > I want to show some áéíóú or ~n ~N in my program but I dont know how to > print > > > it in a properly way; > > > > perl -e "print

print spanish symbols

2008-03-12 Thread obdulio santana
I want to show some áéíóú or ñ Ñ in my program but I dont know how to print it in a properly way; perl -e "print \"algodón\n\"" algod¾n thanks in advance.

Re: How to read from keyboard?

2008-02-27 Thread obdulio santana
2008/2/27, MK <[EMAIL PROTECTED]>: > > On 02/27/2008 09:04:50 AM, obdulio santana wrote: > -> Hi. > > -> > -> I want to read from keyboard some keys [pagedown], > -> [Home],[End][PageUp][up][left][down][right]. > -> > -> how can I do it? > -&

How to read from keyboard?

2008-02-27 Thread obdulio santana
Hi. I want to read from keyboard some keys [pagedown], [Home],[End][PageUp][up][left][down][right]. how can I do it? Thanks in advance.

Re: Printing text between two blank lines

2008-02-21 Thread obdulio santana
2008/2/20, John W. Krahn <[EMAIL PROTECTED]>: > > Gunnar Hjalmarsson wrote: > > obdulio santana wrote: > >> Please let me know if everything is Ok. > >> > >> @l = ; > >> @nl = map /^\s*\n/?1:0,@l; > >> map { print $l[$_] if

Re: Printing text between two blank lines

2008-02-20 Thread obdulio santana
2008/2/20, Gunnar Hjalmarsson <[EMAIL PROTECTED]>: > > obdulio santana wrote: > > I offer you, a tiny version , > > > > @ll=split /^\s*\n/m,join '',; > > print for @ll[1 .. $#ll - 1] ; > > > > That code does not meet the OP's spe

Re: Printing text between two blank lines

2008-02-20 Thread obdulio santana
I offer you, a tiny version , @ll=split /^\s*\n/m,join '',; print for @ll[1 .. $#ll - 1] ; __END__ pri dfsdfsa dfasdf asdf first second last ass sad sas d Maybe this helps somebody. Thaks Perl's folks.

Re: removing duplicates

2008-02-05 Thread obdulio santana
May be this helps perl -lne "print if ++$D{$_} == 1" address.txt regards 2008/2/5, Rob Dixon <[EMAIL PROTECTED]>: > > boll wrote: > > I'm trying to write a script to remove duplicate e-mail addresses from a > > list. > > I'd like some help understanding... > > 1. Why does it remove all but on

Re: uninitialized value in printf

2008-02-02 Thread obdulio santana
Thaks listers, your comments helped a lot. everything was fixed. regards

uninitialized value in printf

2008-02-01 Thread obdulio santana
I must mix 3 files, and produce a little report but in line 23 and 31 is a warning of uninitalized value I really don't see the mistake. Thank you in advance use warnings; @lfile0 = ; chomp @lfile0; @meses = qw(ene feb mar abr may jun jul ago sep oct nov dic); @files= glob "78*"; my %textos;

Re: Looking for regex

2008-01-28 Thread obdulio santana
I offer you a solution and my comments why use hash of 24 elements? using a hash may brings some problem because if file is the joined day+day you finally get a file corresponding for example a month (I use these kind of reports of automatic station) you can face this situation 2007-01-23 00:

Re: about the dot

2008-01-23 Thread obdulio santana
2008/1/22, Jeff Pang <[EMAIL PROTECTED]>: > > > > -Original Message- > >From: Jenda Krynicky <[EMAIL PROTECTED]> > >Sent: Jan 23, 2008 12:59 AM > >To: beginners-list > >Subject: Re: about the dot > > > >From: Jeff Pang <[EMAIL PROTECTED]> > >> I'm a little confused by perl's dot operator.f

Re: Postponing variable replacement

2008-01-23 Thread obdulio santana
using http://www.unix.org.ua/orelly/perl/advprog/ch05_01.htm maybe it helps #!/usr/bin/perl $t=' "$tt is cool\n"'; $tt="perl"; print eval $t; thanks regards # 2008/1/23, Bryan R Harris <[EMAIL PROTECTED]>: > > > > >> Is there any way to change the last statement to do what I want, which > in >

Re: speeding up a perl script

2008-01-23 Thread obdulio santana
With a tiny change we shun the use of $c. thereby a bit faster. perl -nle 'END { print $. }' file thanks 2008/1/22, Chas. Owens <[EMAIL PROTECTED]>: > > On Jan 22, 2008 2:58 PM, lerameur <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I wrote a short perl script (65 lines), simply to count some

How print a Hashtable with reference ?

2007-09-22 Thread Santana
Hei all, hoe a print a hashtable elements in a function that receives the reference of this hastable ??? In this example this foreach loop in "printHT" function dont work , how is missed ? #!/usr/bin/perl use strict; use warnings; sub printHT($) { my $T =$_[0]; foreach my $id (keys (%$

How print a Hashtable with reference ?

2007-09-21 Thread Santana
Hei all, how print a hashtable elements in a function that receives the reference of this hastable ??? In this example this foreach loop in "printHT" function dont work , how is missed ? #!/usr/bin/perl use strict; use warnings; sub printHT($) { my $T =$_[0]; foreach my $id (keys (%$T

Debugg in PERL

2007-09-14 Thread Santana
Hei aill, i'am new in PERL and i would like to ask what are development envirment that you use ? And if is possible to make a debugg in PERL like JAVA or Visual Basic ? Thanks, Santana [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

String question

2007-09-07 Thread Santana
Hei all, i'am a newbie in PERL and i find a solution for this problem : I have a string "xxx" , i want put ones("1") on left of string, if this string dont have a length of 20 character. Example : if i have th string "HELLO" and woul like get this ; "111HELLO" How i can this

How i convert a excel file to csv file

2007-08-09 Thread Santana
Hei friends, i'am new in newbie in Perl, and i try i convert a excel file in csv file in Suse 10.0 linux. I install the Spreadsheet-ParseExcel-0.32.tar.gz module in my linux but when i try run this script : use strict; use Spreadsheet::ParseExcel; my $excel = Spreadsheet::ParseExcel::Workbo

How i convert a excel file to csv file ?

2007-08-07 Thread Santana
Hei friends, i'am new in newbie in Perl, and i need how i convert a excel file in csv file in linx ? Can you help me, please ?? Thanks, Paulito -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

time limit???

2002-03-29 Thread Alberto Santana
Hi guys, Suppose I have a Perl script (called from a crontab file) that will, basically, do something like this: $out=`lynx -dump http://lists.cpan.org/showlist.cgi?name=beginners`; open(OUT,">out"); print OUT $out; close(OUT); $send_it=`mail me\@here.comhttp://www.qtp.ufl

time limit???

2002-03-29 Thread Alberto Santana
Hi guys, Suppose I have a Perl (called from a crontab file) script that will (basically) do something like this: $out=`lynx -dump http://lists.cpan.org/showlist.cgi?name=beginners`; open(OUT,">out"); print OUT $out; close(OUT);

Fun With Perl list ???? where is it ? :)

2001-08-03 Thread Silvio Luis Leite Santana
Hi all Is there actually a Fun With Perl list? (ok, this list is funny already, but not officially :) ) I think I learn better when I'm having fun (that's why I think so easy to learn Perl reading the camel book, and learning everything else by the o'reilly books) If there isn't a list, perhaps

Re: Fun With Perl list ???? where is it ? :)

2001-08-02 Thread Silvio Luis Leite Santana
OK, officially too :) 2.3 - Are there any rules? Yes. As with most communities, there are rules. Not many, and ones that shouldn't need to be mentioned, but they are. Be nice No flaming Have fun Silvio Luis Leite Santana wrote: > > Hi all > Is there actua

Re: typeglobs and references

2001-07-25 Thread Silvio Luis Leite Santana
uot;; all we see is a 'Use of uninitialized value in concatenation (.)' message, even if $PI is being previously declared with my or our. Thanks again Silvio Santana -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

typeglobs and references

2001-07-24 Thread Silvio Luis Leite Santana
, but we could change it on the second... Thanks in advance and for a long time Silvio Santana -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

autoflush on network connection

2001-07-19 Thread Silvio Luis Leite Santana
Hello all Trying to learn a bit of networking, I am using the module IO::Socket::INET just as shown in the camel book (3rd edition) pg 439-441. I have a client process (that sends data), and a server (that receives those data). I send data from the client to server with the lines: $mensagem =

to double or to single quotes? that's the question

2001-07-12 Thread Silvio Luis Leite Santana
Hi all Just to confirm some thoughts I had... Since double quotes need to be searched for variable interpolation, while single quotes don't, I should always (whenever possible) prefer single quotes instead of double quotes in my programs, because: print 'hi all'; would be faster than print "h

backticks

2001-07-02 Thread Silvio Luis Leite Santana
Hi all I've just did that, and it worked: [silvio@tico perl]$ cat saida cat: saida: No such file or directory [silvio@tico perl]$ perl -e '$x = `pwd>saida`; print "[$x]\n";' [] [silvio@tico perl]$ cat saida /home/silvio/perl It seems the backtick operator calls the shell, otherwise it wouldn't b

open +>>

2001-06-27 Thread Silvio Luis Leite Santana
Hi all The camel-book and perldoc-page says about "open": You may also place a + in front of any of these three modes to request simultaneous read and write. +< is for read/write updates +> clobber the file, reread only what you wrote What would +>> do? the same as +< ? the camel-book

curly braces

2001-06-26 Thread Silvio Luis Leite Santana
Please Why does code 1 work, but code 2 doesn't? (the diference is the ; after print) After all, is it posible or not to put a block in place of a expression? Thanks in advance Silvio CODE 1 - WORK $bissexto = ; chop($bissexto); $bissexto and { print "OK\n" }; print "end\n"; CODE 2 - DOESN'T

Re: use strict

2001-06-25 Thread Silvio Luis Leite Santana
'japhy' Pinyan wrote: > > On Jun 25, Silvio Luis Leite Santana said: > > >I'd like to know how can a program like > >the 'camel program' be compiled and run, > >because there are spaces spliting keywords! > > The secret is on line 2. >

use strict

2001-06-25 Thread Silvio Luis Leite Santana
Hi all Please I'd like to know how can a program like the 'camel program' be compiled and run, because there are spaces spliting keywords! It seems it's because of the 'use strict', but I don't see any relation between them. The camel book, doesn't tell anything about spaces inside keywords eit