SDL beginner question

2011-01-21 Thread Francesco Di Lorenzo
rary/Perl/5.10.0 /Network/Library/Perl > /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level > /System/Library/Perl/Extras/5.10.0 .) at ./script.pl line 4. BEGIN failed--compilation aborted at ./script.pl line 4. Hope you can help me. Best Regards, *-- Francesco Di Lorenzo* *@frankdilo <http://twitter.com/frankdilo> *

Re: Perl Books

2010-12-26 Thread Francesco Di Lorenzo
I'm a beginner and I'm currently reading Learning Perl by O'Really, great book! Francesco On 26/dic/2010, at 19:54, SERIER wrote: > What are some of the best books for newbies to perl? > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org >

Re: Real life usage

2010-12-18 Thread Francesco Di Lorenzo
Thanks for your answer Octavian. I actually have no needs, I'm studying Perl for a general passion for programming. I only wanted to know the real life possibility of what I'm studying... Best reards, Francesco Il giorno 18/dic/2010, alle ore 20:20, "Octavian Rasnita" ha

Real life usage

2010-12-18 Thread Francesco Di Lorenzo
ource code or you use it as your main programming language? Francesco -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Creating a GUI

2010-12-17 Thread Francesco Di Lorenzo
Hi everyone, this is my first message in this mailing list. I would love to know how to create a graphic user interface using Perl. I've read that there are a lot of resource to do this but I don't know where to start... Can anyone help me? I'm a Perl's beginner under Mac OS X. Thanks :-)

color and newline problem (Term::ANSIColor)

2009-12-31 Thread Francesco Stablum
] use Term::ANSIColor; foreach(){ $c = (++$i % 2 == 0)? 'white on_black' : 'black on_white'; print colored ($_, $c); } [/code] Is it a flushing problem? I cannot understand why. Do you? many thanks, Francesco Stablum P.S. sorry for my bad english -- The generation of r

Re: Check for modules presence

2008-09-02 Thread Francesco Rotondella
r/0x9964f24//usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Tk/Frame/delete.al line 2, near "package ::usr::lib::perl5::site_perl::5.8.5" Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Tk/Widget.pm line301. at ./test.pl line 417 Why this

Re: Check for modules presence

2008-08-29 Thread Francesco
ing $module"); if ( $@ ne '' ) { push @NOTFOUND_MODULES, $module; $warn++; } } foreach my $module ( @NOTFOUND_MODULES ) { $str = $str . "Please, install [$module] module\n"; } if ( not $warn ) { system ("./mainscript.pl"); } else {

Problems when 'make' in DBD::mysql

2007-09-08 Thread Francesco Moi
Hi. Trying to install 'DBD::mysql' on Linux, I'm getting errors when 'make'. 1) Installed DBI-1.59 2) Installed Data-ShowTable-3.3 3) Downloaded 'Msql-Mysql-modules-1.2219' 4) []# perl Makefile.PL Which drivers do you want to install? 1) MySQL only 2) mSQL

Re: file and dir time stamps

2005-01-24 Thread Francesco
includes some options, can be used interactively or with a configuration file, can be recursive or not, and so on. I hope the documentation included in the script could be enough. HTH -- Francesco # FILE: clean.pl # NAME: clean old files # VERSION: 0.3 # AUTHOR: abeni # MODIFIED: 01/12/2004

feeding standard input calling an external program

2004-09-07 Thread Francesco del Vecchio
is passed via standard input with a "filename | myprogramname" in the shell, but in my case it is in a variable of my perl program How can I do it without write a file on the filesystem? tnx in advance Francesco __ Do You Yahoo!? Tired of spam?

deleting HTML tag...but not everyone

2004-07-29 Thread Francesco del Vecchio
all HTML tags but one but I also keep a tag and I delete the tag that I would like to keep The problem is in the ^[DIV] part of my regexthe "DIV" string is used as list of chars and not as whole world. Is there a way to archieve my goal?

Yet Another Regex Problem

2004-06-08 Thread Francesco del Vecchio
w can I get simply "http://www.yahoo.com"; and then "http://www.google.com";? thanx very much...you'r saving a man Francesco __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.co

traslating HTML special chars

2003-10-31 Thread Francesco del Vecchio
rmat as you can see below http%3a%2f%2fdba%2eadtech%2ede%2fr30%2fdem_r%2easp%3fG%3d167F0G0G22G160G24G4 How can I obtain the original string? tnx Francesco __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -

javascript Parsing

2003-10-21 Thread Francesco del Vecchio
Hi to all, I need to parse javascript into web pages to substitute all relative addresses to absolute ones. I do this job in the HTML using LWP but I'm having bad times trying to do it into javascript contained in the page. Can anyone help me? Frank __ Do you

Re: Php perl?

2003-04-01 Thread Francesco del Vecchio
I can count on. What I say is just a simple introduction...most skilled person can add detail to this response Good Perl! ^_^ Francesco --- Paul Kraus <[EMAIL PROTECTED]> wrote: > Is perl used to compliment PHP or is perl better to use by itself > instead of php? How does one relate

Re: Database for CGI stuff? Slightly OT

2003-03-31 Thread Francesco del Vecchio
In your shoes I would use MySQL. It is very fast and lightweight and free, but you cannot do any DB-side process...so you can't develop multi-tier application. On the other hand you can try Postgree SQL...free too. Francesco --- Rob Dixon <[EMAIL PROTECTED]> wrote: > Hi all. &g

Re: make a graph

2003-03-31 Thread Francesco del Vecchio
GD::Graph Francesco --- jdavis <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to make a bar graph, in a png or jpg format. Could > someone suggest a good perl moduel to help me. > > Thanks, > -- > jd > [EMAIL PROTECTED] > > Bad spellers of the wo

convert HTML => IMG

2003-03-25 Thread Francesco del Vecchio
I would like to convert an HTML document into an image file Is there any possibility to do this with perl? Do you have any idea how to do it or some library useful to that? tnx Frank __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madne

Re: First program not working

2003-03-24 Thread Francesco del Vecchio
I'm not an expert in Perl, and I matched the same kind of problems few days ago. Here you have some suggestion: 1 - Try to run it as simple perl program in the shell (# perl hello.pl) and check for errors or strange output. 2 - Go in the log directory of Apache (etc/httpd/logs) and check the er

Re: Database access & CGI

2003-03-24 Thread Francesco del Vecchio
--- Rob Dixon <[EMAIL PROTECTED]> wrote: > Hi Frank. > > We can only speculate as to what your problem may be > until we know a little more about your script. Can you post > an extract of what you think is the relevant area? > > Cheers, > > Rob Hi Rob...here you have the code: ==

Printing epoch time

2003-03-24 Thread Francesco del Vecchio
how can I print the today date (DD MM YY HH MM SS) in epoch format? Frank __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Database access & CGI

2003-03-24 Thread Francesco del Vecchio
I wrote a small program accessing a Mysql database. All works fine when I run it from shell, but when I try to use it as CGI using apache 2.0 I'm having this kind of trouble: when he access to the database, looks like he append to the user name the domain...so if all works properly from shell w

RE: apache error

2003-03-14 Thread Francesco del Vecchio
Sorry for boring you, but even copying and pasting the source you gave me I obtain the same error :-(( Any help? Francesco --- Bob Showalter <[EMAIL PROTECTED]> wrote: > Francesco del Vecchio wrote: > > I'm new to apache and linux. > > > > I'm trying to

Re: apache error

2003-03-14 Thread Francesco del Vecchio
Tnx for the example! now I undersand! ^_^ Tnx to David too!!! Francesco --- Pete Emerson <[EMAIL PROTECTED]> wrote: > The CGI module is fantastic for doing things like printing headers, > parsing forms, etc. I don't think I've written a CGI script without it. > You

RE: apache error

2003-03-14 Thread Francesco del Vecchio
sorry David, can you post an "hello world" cgi working? I was using INDIGO PERL on win and that script work on that system. Francesco --- David Olbersen <[EMAIL PROTECTED]> wrote: > Francesco, > > That's not a complete CGI script -- it's missing quite a fe

apache error

2003-03-14 Thread Francesco del Vecchio
? the source is the following #!/usr/bin/perl -w print ("ciao\n"); tnx Francesco __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Linux Perl Editor

2003-03-13 Thread Francesco del Vecchio
Is there a perl Editor for linux? (except EMACS) Francesco __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Trouble with pattern matching

2003-03-11 Thread Francesco del Vecchio
he $tosubstitute variable it's value is correct...but I obtain this http://www.html.it/img/colore_grigio.gif%22%3E%3Cimg src="img/colore_grigio.gif" width=1 height=1> note that this strange chars (%22%3E%3Cimg) have appeared. What can

Re: reading a html page

2003-03-10 Thread Francesco del Vecchio
HTML::Parser you can find it here http://www.perldoc.com/perl5.8.0/lib/HTML/Parser.html Francesco --- learn perl <[EMAIL PROTECTED]> wrote: > Hi guys, is there Modules that would read an html file? or handles html > file? > > Thanks > > Eric > > > --

Midify HTML on the fly

2003-03-10 Thread Francesco del Vecchio
this paramenterHow can I do? Francesco __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

deduplicate array

2003-03-10 Thread Francesco del Vecchio
how can I, as afficiently as I can, drop duplicated values from an array? tnx Francesco __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Parsing with contions

2003-03-10 Thread Francesco del Vecchio
Sorry...I tryied to keep my mail short: I have to match /img/giallo.gif HERE -> "/img/giallo.gif" HERE -> "whaterveryouwant/img/giallo.gif" HERE -> "/img/giallo.gif?mypar" NOT HERE -> "http://www.html.it/img/giallo"; I hope this clarify yo

Parsing with contions

2003-03-10 Thread Francesco del Vecchio
find can be part of a string...like http://www.somedomain/img/giallo.gif How can I do it? Tnx Francesco __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

tnx to Scott Godin

2003-03-07 Thread Francesco del Vecchio
First, I'm really sorry...I didn't want to send you a personal email...I pushed Reply instead of Reply All Second, Scott...you are great!...I solved my problem with your suggestion. Thank a lot...this is a great mailing list!!! --- "Scott R. Godin" <[EMAIL PROTECTED]> wrote: > Two things: > >

special caracters in variables in patternmatching

2003-03-07 Thread Francesco del Vecchio
problemsdue (i suppose) to the special chars in the $var1 string the s/// don't match anything. What can I do to? thanx Francesco __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- To un

Re: pattern matching problems 2

2003-03-06 Thread Francesco del Vecchio
ly the "method" can also not to be absent, so I need a generiche pattern matching. Francesco --- Rob Dixon <[EMAIL PROTECTED]> wrote: > > Hi Francesco . > > It depends how you want to define where it is. To get the > last word on the line (with possible trailin

pattern matching problems 2

2003-03-06 Thread Francesco del Vecchio
t;someotherstuff" are...I only know that they are two words separed by a space. How can I extract 'somestuff' from the string? ==== Thanks in advace, and sorry for boring you Francesco __

pattern matching problems

2003-03-06 Thread Francesco del Vecchio
I have a string as the following: a xx b a x b and I try a m/a(.*)b/g $1 = xx b a x what have I to do to obtain two matches each of one give me $1 = x ? Thanks in advance Francesco __ Do yo

Re: # question

2002-07-17 Thread Francesco Guglielmo
Many thanks!!! Shawn wrote: >Hello, > >- Original Message - >From: "Francesco Guglielmo" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, July 17, 2002 4:35 AM >Subject: # question > > >>($uno,$due,$tre,$quattro,$cin

# question

2002-07-17 Thread Francesco Guglielmo
($uno,$due,$tre,$quattro,$cinque,$sei) = split (/\s+/); s/\#//; print $sei; Is it right to have $sei without #? thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Wait

2002-07-16 Thread Francesco Guglielmo
How can I say to my script to wait some seconds before continuing? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Date

2002-07-12 Thread Francesco Guglielmo
te my commands trought system.I >>thought to do this transforming the date in this format to days from the >>begin of the year but I don't know how.Thanks for your help, >>Francesco >> > >Why do you need to do things this way? There is a perfectly good deamon in >

Date

2002-07-12 Thread Francesco Guglielmo
this format to days from the begin of the year but I don't know how.Thanks for your help, Francesco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Who debug me?

2002-05-17 Thread Francesco Guglielmo
That's the problem: #!/usr/bin/perl my $file = '/home/users/francesco/LISTAORDINATA.txt'; my $outfile = '/home/users/francesco/Perl/file/usrpasswdemail.txt'; my $file2 = '/home/users/francesco/Perl/file/peralberto.txt'; open (OUT, ">$outfile&q

Help!

2002-05-15 Thread Francesco Guglielmo
ible. Bye and many thanks for your help. David vd Geer Inhuur tbv IPlib wrote: > Hi Francesco, > > You could do it like this : > > $line = "qw001234po001234 ghjkldzx001234 tgbnhy"; > > ($pw0,$uid1,$pw1,$uid2,$pw2) = split(/\s+/, $line); > >

Re: Split

2002-05-14 Thread Francesco Guglielmo
Many thanks!But to take it from a file and not from a variable like $line? > Hi Fransesco, > > Let's try this one then :) > > ($username, $name) = split(/:/, $line); > chomp($username); > chomp($name); > > I think you just learned chomp :) > > Regs David > - > > > > I haven't yet

Split

2002-05-14 Thread Francesco Guglielmo
I haven't yet resolved my problem with pattern matching and I'm in front of another problem. I have a file with username: name#there are one or more white space I need to make a new file with name username I think I can do it with split but I don't know how.A little help?Thanks --

Re: Pattern matching

2002-05-14 Thread Francesco Guglielmo
help. David vd Geer Inhuur tbv IPlib wrote: > Hi Francesco, > > You could do it like this : > > $line = "qw001234po001234 ghjkldzx001234 tgbnhy"; > > ($pw0,$uid1,$pw1,$uid2,$pw2) = split(/\s+/, $line); > > print NEWFILE "$uid1 $pw1 \n"; > pri

Pattern matching

2002-05-14 Thread Francesco Guglielmo
I have many files with username and passwd.The old files are in format: qw001234 asdfgh# all usernames are composed by qw/po/zx + 00 + 4 number The new files have three usernames and passwd for each number on each line: qw009876 qwertypo009876 poiuyt zx009876 mnbvcx To pa