Re: Date and Time Functions

2006-09-21 Thread Xavier Mas i Ramón
A Dijous 21 Setembre 2006 01:38, [EMAIL PROTECTED] va escriure: > Hello > > I am looking for some simple perl functions that will return the current > date and time in string format. The purpose is to create a file with part > of the name being the date and time. > > Thanks, > Andrew sytem "date"

Re: Access elements of a array of hases

2006-09-15 Thread Xavier Mas i Ramón
A Divendres 15 Setembre 2006 22:21, D. Bolliger va escriure: > Geetha Weerasooriya am Freitag, 15. September 2006 15:52: > > Hi , > > > > I have an Array of Hashes as follows: > > > > @array = ( > > { 'A'=>1, 'B' =>2, 'C'=>3, 'D'=>4} > > { 'A'=>5, 'B' =>6, 'C'=>7, 'D'=>8} > > { 'A'=>9, 'B' =>10,

german characters in Perl

2006-09-14 Thread Xavier Mas i Ramón
Hello again, folks I need in my job to handle a german file under Windows XP operating system although always use Linux at home). So, I've to install "Lingua-DE-ASCII-0.11.tar.gz" (it works well under my Linux system), but I can't find it for Windows. Is there other module or way to get around

Re: hash access

2006-09-14 Thread Xavier Mas i Ramón
A Dijous 14 Setembre 2006 11:38, Mumia W. va escriure: > On 09/14/2006 01:18 AM, Xavier Mas i Ramón wrote: > > Hi all!, > > > > I'm trying to create a sorted (ASCII) hash file but get all time a syntax > > error in line "my $abreviatures{$clau} = 1;" at &

Re: hash access

2006-09-14 Thread Xavier Mas i Ramón
A Dijous 14 Setembre 2006 08:31, John W. Krahn va escriure: > Xavier Mas i Ramón wrote: > > Hi all!, > > Hello, > > > I'm trying to create a sorted (ASCII) hash file but get all time a syntax > > error in line "my $abreviatures{$clau} = 1;" at "

hash access

2006-09-13 Thread Xavier Mas i Ramón
Hi all!, I'm trying to create a sorted (ASCII) hash file but get all time a syntax error in line "my $abreviatures{$clau} = 1;" at "$abreviatures{ <--". Sure is an stupid mistake but I'm not able to see it even checking with my "Learning Perl" book. Pls, can someone tell me where is the synta

Re: splitting the line correctly

2006-09-10 Thread Xavier Mas i Ramón
A Diumenge 10 Setembre 2006 01:56, Robert Krueger va escriure: > Hi, > I bought 3 books a few days ago on Perl, and things are going well with > one exception. > > An example: > > @line = "this is a very long line word1+word2+word3 and it contines on and > on"; > > The object is to execute a spli

Re: process data into an array using CGI script

2006-09-03 Thread Xavier Mas i Ramón
A Diumenge 03 Setembre 2006 03:09, chen li va escriure: > Dear all, > > I paste some data into textarea in a CGI script and > use param('data')to retrieve the data. I want to pass > the data into an array but what I find is that I only > one dimensional array. Can someone here give me a > hand? > >

Re: shifting 100 at a time

2006-08-20 Thread Xavier Mas i Ramón
A Diumenge 20 Agost 2006 22:49, Gerald Host va escriure: > What is the most efficient way to shift the first 100 items off an array? > > Thanks! if you mean that first element be the last one and so on, use reverse. -- Xavier Mas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Xavier Mas i Ramón
A Dissabte 19 Agost 2006 09:19, I BioKid va escriure: > I have a simple - yet trivial problem - > > I 2000 directory at /home2/foo/foodir/ . > I need to copy all files with extension *.atm and *.ali to another > directory called temp (say /home2/foo/foodir/temp ) > After that I need to run a progr

Re: passing an array to subroutines

2006-07-21 Thread Xavier Mas i Ramón
A Divendres 21 Juliol 2006 22:14, [EMAIL PROTECTED] va escriure: > How do I pass an array to a subroutine in a manner that the array is > entirely contained in one element of @_, instead of having each element > mapped to elements of @_. > > for example, inside of the subroutine, I'd like to say >

Need help with error from certain ASCII characters in a CSV file

2006-07-07 Thread Xavier Mas i Ramón
Did you try to replace these characters of the file by they Unicode code (that Perl coulf read)? -- Xavier Mas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]