You have to use references for the same. For a key, you can assign the value as array or hash reference. Since references are scaler values only, Perl will not...
Amit Saxena
learn.tech123@...
Jul 2, 2008 5:09 am
26238
Here is the example which shows multiple values can be stored in one hash . e.g $hash{$key}->{$x_corrd}= $val $hash{$key}->{$y_corrd}=$val -Regards, vidhut ......
Hello, I'm new on this list and perl and hope you can help me out with a little problem. I have a little problem with a hash / key reference. I have two...
Erwin Krause
devnull@...
Jul 2, 2008 9:39 am
26241
Use \Q and \E before and after respectively in search string. Â i.e. Â $sample=~s#\Q<Subject> [3b2users] x-counters</ Subject>< Received> 7/2/2008 2:00:00...
Thanks its working fine. _____ From: perl-beginner@yahoogroups.com [mailto:perl-beginner@yahoogroups.com] On Behalf Of VIJAY KUMAR Sent: Wednesday, July 02,...
... Erwin> Hello, Erwin> I'm new on this list and perl and hope you can help me out with a little Erwin> problem. Erwin> I have a little problem with a hash /...
Erwin> Hello, Erwin> I'm new on this list and perl and hope you can help me out with a little Erwin> problem. Erwin> I have a little problem with a hash / key...
Erwin Krause
devnull@...
Jul 3, 2008 4:48 am
26246
... Erwin> Yeah you are right, I used ( ) in my code, just wrote this down and dont Erwin> c&p that part, so I did the mistake. I've stopped helping you now....
Hi All, I have Microsoft Office Outlook 2003 and Microsoft Outlook express 6 in the same system. Microsoft Office Outlook 2003 contains my official emails and...
Mh I'm really sorry, but i dont have an syntax problem. But i can make this more imaginable #!/usr/bin/perl use strict; use warnings; %config = ( ip =>...
Erwin Krause
devnull@...
Jul 3, 2008 2:36 pm
26250
... Erwin> Mh I'm really sorry, but i dont have an syntax problem. Erwin> But i can make this more imaginable Erwin> #!/usr/bin/perl Erwin> use strict; Erwin>...
As tile [Non-text portions of this message have been removed]...
Henry Read
henryar2@...
Jul 6, 2008 5:35 am
26252
I want to remove from the string below - "array ( " at the front and the ", )" at the end with a single substitute command. The following is what I have tried...
It's working at my end though it does not seems to be an efficient way, [root@111 ~]# cat v.pl #! /usr/bin/perl my $string = "array ( 101 => 11, 89 => 13, 88...
Amit Saxena
learn.tech123@...
Jul 8, 2008 11:58 am
26254
... 1, )"; ... Very bizarre - it's not working for me: WIN XP, Activestate v5.8.8 Can you recommend a more 'efficient way'? Thanks...
Hi Not sure whether my version is more efficient / better or not (comments awaited) :- [root@111 ~]# cat v.pl #! /usr/bin/perl my $string = "array ( 101 => 11,...
Amit Saxena
learn.tech123@...
Jul 8, 2008 12:31 pm
26256
Another regex is: $string =~ s/^\D*(\d.*\d)\D*$/$1/; ... -- Thiago Nascimento perl -e '$_="tMM naaCt Feocmama_itpUilucoGa";$_.=$1,print $2 while ...
... I was ... OK I've isolated my problem - I really would appreciate some help understanding what the problem is. My String (each character in square...
Hello Friends, I am learning Perl now. I have a small query. I have a directory Z with file name Z.txt. I would like to copy this file Z.txt to 3 new dir with...
Surprisingly, it's working at my end. So I think, there is some issues with configuration at your end. Regarding the whitespace issue, always use \s+ or \s*...
Amit Saxena
learn.tech123@...
Jul 9, 2008 5:04 am
26263
... Amit> Regarding the whitespace issue, always use \s+ or \s* and try to avoid the Amit> non-greedyness of "*" by replacing it with Amit> "*?" You mean avoid...
Sorry about that typo, What I meant was :- Regarding the whitespace issue, always use \s+ or \s* and try to avoid the greedyness of "*" by replacing it with...
Amit Saxena
learn.tech123@...
Jul 9, 2008 2:50 pm
26265
From: "Amit Saxena" <learn.tech123@...> ... !post top- not Do what good is $str =~ s/^\s*?//; ? Do not "try to avoid greedines"! Understand the...