Re: Dates

2005-01-07 Thread Scott R. Godin
Jeff Eggen wrote: Tim Wolak <[EMAIL PROTECTED]> 06/01/2005 3:59:26 pm >>> Hello all, I am in need of a quick way to get the current date in the MMDD format. This is something I would like to understand better on how to get the date with perl. Any suggestions would be most welcome. As per t

re: Search And Replace

2005-01-07 Thread William Black
Hello All I'm tryiing to search and replace in both perl and korn shell. For Example: X=G1234V00 I want to replace all occurences of 'V' with 'v' in both perl and korn shell William Black -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Search And Replace

2005-01-07 Thread José Pedro Silva Pinto
Hi, do perl -pi -e 's/Old_value/new_value/g' Our_File Bye -Original Message- From: William Black [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 7 de Janeiro de 2005 14:42 To: beginners@perl.org Subject: re: Search And Replace Hello All I'm tryiing to search and replace in both perl an

RE: Search And Replace

2005-01-07 Thread Adamiec, Larry
> -Original Message- > From: William Black [mailto:[EMAIL PROTECTED] > Sent: Friday, January 07, 2005 08:42 > To: beginners@perl.org > Subject: re: Search And Replace > > > Hello All > > I'm tryiing to search and replace in both perl and korn shell. > > For Example: > > X=G1234V00 >

RE: Search And Replace

2005-01-07 Thread pablo wablo
sorry sent it out ot the list if it's just V you want to replace you can try $something =~ s/V/v/g; --- "Adamiec, Larry" <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: William Black [mailto:[EMAIL PROTECTED] > > > Sent: Friday, January 07, 2005 08:42 > > To: begi

Array question

2005-01-07 Thread Boris Volf
Can anyone help with this I have the following array: 1,1040209458 2,1040328655 3,1040847094 4,1041030406 5,1042093756 I need to create a script that goes through this array(@temp_array), and creates various output files with N rows in each fi

Re: Version of gdlib wih GD

2005-01-07 Thread JupiterHost.Net
? ?? wrote: your OS? linux, Windows and others? OS X which is a BSD, FreeBSD several versions and differebt flavors of Linux :) The OS doesn't matter becasue I'm looking for a way to find the current installed gdlib version, preferabley from GD.pm and hoepfullt platform independant If your OS

Re: Search And Replace

2005-01-07 Thread John W. Krahn
William Black wrote: Hello All Hello, I'm tryiing to search and replace in both perl and korn shell. For Example: X=G1234V00 I want to replace all occurences of 'V' with 'v' in both perl and korn shell You can use tr in both perl: perl -pe'tr/V/v/' file.in > file.out and the shell: tr V v < file.i

Warning: Use of hash a reference is deprecated

2005-01-07 Thread Siegfried Heintze
I'm getting a warning on line 10 or 11. The program works. I'd like to get rid of the warnings however. When I change "%hash" to "$hash" on lines 10-11 then the program does not work at all then. Thanks, Siegfried 1 package case; 2 our @EXPORT = qw( $crimhelp $evhelp $civhelp $rkhelp);

Regarding strings

2005-01-07 Thread arjun.mallik
Hi Frnds, If I have a number of 6 digits. How to get the last 2 digits. This should be valid even when i have 2 digits as input. i.e If input is 991041 then output shud be 41 if input is 41 then output shud be 41 May be junk and simple question but ..i need this ..please do respond.. Than

Re: Warning: Use of hash a reference is deprecated

2005-01-07 Thread Alfred Vahau
10 my ($me, %hash )= @_; 11 my $type = %hash->{base_type}; In 10, is the structure of the hash preserved? What happens if you pass the hash by reference? In 11, you are using the hash as a reference. What you want is something like: my $type = $hashref->{base_type}; alfred, Siegfried Heintze

Re: Regarding strings

2005-01-07 Thread Alfred Vahau
perldoc -f substr alfred, [EMAIL PROTECTED] wrote: Hi Frnds, If I have a number of 6 digits. How to get the last 2 digits. This should be valid even when i have 2 digits as input. i.e If input is 991041 then output shud be 41 if input is 41 then output shud be 41 May be junk and simple questio

RE: Regarding strings

2005-01-07 Thread arjun.mallik
Hi Frnds, Found solution. $len = length($temp); if ($len > 2) { $temp=substr($temp,$len-2,2); } Thanks Arjun Deserve before you desire -Original Message- From: Alfred Vahau [mailto:[EMAIL PROTECTED] Sent: Friday, January 07

Re: Regarding strings

2005-01-07 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi Frnds, Hello, If I have a number of 6 digits. How to get the last 2 digits. This should be valid even when i have 2 digits as input. i.e If input is 991041 then output shud be 41 if input is 41 then output shud be 41 May be junk and simple question but ..i need thi

Re: Warning: Use of hash a reference is deprecated

2005-01-07 Thread Scott R. Godin
Alfred Vahau wrote: 10 my ($me, %hash )= @_; 11 my $type = %hash->{base_type}; In 10, is the structure of the hash preserved? What happens if you pass the hash by reference? In 11, you are using the hash as a reference. What you want is something like: In which case you would also want to us

Installing perl

2005-01-07 Thread Octavian Rasnita
Hi, I want to install perl 5.8 under Linux and I don't know which is the most recommandable solution, perl 5.8.6 from CPAN, or Active Perl for Linux 5.8.4. Is there any stability difference, or different features in these 2 versions? Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECT