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
Anders Holm wrote: >>I need to do a Perl script who do a certain command after 2 days.Example: >>my file contains >> >>8 Jul 2002 >> >>when I lunch the script it must control the date and if it's equal to >>date+2 (in this case 10 Jul 2002) execute my commands trought system.I >>thought to do thi

Date

2002-07-12 Thread Francesco Guglielmo
I need to do a Perl script who do a certain command after 2 days.Example: my file contains 8 Jul 2002 when I lunch the script it must control the date and if it's equal to date+2 (in this case 10 Jul 2002) execute my commands trought system.I thought to do this transforming the date in this fo

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"); open (INPUTEMAIL, "$file2"); # open (INPUTPA

Help!

2002-05-15 Thread Francesco Guglielmo
Please help me! I'm going crazy! It's perfect but I need something more.I need also the qw001234 with the passwd that's in another file in format: qw001234 rfvcde And I want it for all lines of all files. I'm obviously a beginner in perl so I don't know if it is possible. Bye and many thanks f

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
It's perfect but I need something more.I need also the qw001234 with the passwd that's in another file in format: qw001234 rfvcde And I want it for all lines of all files. I'm obviously a beginner in perl so I don't know if it is possible. Bye and many thanks for your help. David vd Geer Inhuur

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