Search the web
Sign In
New User? Sign Up
perl-beginner · Perl Beginners Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 26236 - 26265 of 26718   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
26236
Hello,   Good afternoon. I want to open a file and store data in a HASH. Well, my input file format is like this (a Csv file with list of...
Charith Dias
charith_dias
Offline Send Email
Jul 2, 2008
5:01 am
26237
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@...
Send Email
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 ......
vidhut singh
chat2vidhut
Offline Send Email
Jul 2, 2008
5:20 am
26239
Hi All, #my string is $sample="<Mail><Subject>[3b2users] x-counters</Subject><Received>7/2/2008 2:00:00 PM</Received></Mail>"; #find and replace ...
n.samuel79
Offline Send Email
Jul 2, 2008
9:32 am
26240
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@...
Send Email
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...
VIJAY KUMAR
mp_vijayakumar
Offline Send Email
Jul 2, 2008
10:14 am
26242
Thanks its working fine. _____ From: perl-beginner@yahoogroups.com [mailto:perl-beginner@yahoogroups.com] On Behalf Of VIJAY KUMAR Sent: Wednesday, July 02,...
samuel
n.samuel79
Offline Send Email
Jul 2, 2008
10:23 am
26243
... 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 /...
merlyn@...
merlynstoneh...
Online Now Send Email
Jul 2, 2008
2:56 pm
26244 Erwin Krause
devnull@...
Send Email
Jul 2, 2008
6:06 pm
26245
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@...
Send Email
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....
merlyn@...
merlynstoneh...
Online Now Send Email
Jul 3, 2008
5:40 am
26247
Hello,   Thanks a lot!! I got the required output. :)   Regards,   Charitha DIAS     ... From: vidhut singh <chat2vidhut@...> Subject: Re: [PBML]...
Charith Dias
charith_dias
Offline Send Email
Jul 3, 2008
8:08 am
26248
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...
Samuel N
n.samuel79
Offline Send Email
Jul 3, 2008
9:39 am
26249
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@...
Send Email
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>...
merlyn@...
merlynstoneh...
Online Now Send Email
Jul 3, 2008
3:35 pm
26251
As tile [Non-text portions of this message have been removed]...
Henry Read
henryar2@...
Send Email
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...
hooyar66
Offline Send Email
Jul 8, 2008
11:40 am
26253
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@...
Send Email
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...
hooyar66
Offline Send Email
Jul 8, 2008
12:16 pm
26255
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@...
Send Email
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 ...
Thiago Nascimento
nascimentoth...
Offline Send Email
Jul 8, 2008
12:33 pm
26257
... (comments ... => 1, )"; ... 1, )] ... <pcbcad@...<pcbcad%40hotpop.com>> ... <perl-beginner%40yahoogroups.com><perl-beginner% ... efficient way, ... 120 => ...
hooyar66
Offline Send Email
Jul 8, 2008
1:01 pm
26258
... 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...
hooyar66
Offline Send Email
Jul 8, 2008
2:05 pm
26259
Tell me, whether my solution is working or not ? Regards, Amit Saxena ... [Non-text portions of this message have been removed]...
Amit Saxena
learn.tech123@...
Send Email
Jul 8, 2008
2:46 pm
26260
... <perl-beginner%40yahoogroups.com>, ... <perl-beginner%40yahoogroups.com>, ... 14, 120 ... 120 => ... ...
hooyar66
Offline Send Email
Jul 8, 2008
3:20 pm
26261
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...
ramesh.govinda
Offline Send Email
Jul 8, 2008
8:32 pm
26262
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@...
Send Email
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...
merlyn@...
merlynstoneh...
Online Now Send Email
Jul 9, 2008
2:38 pm
26264
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@...
Send Email
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...
Jenda Krynicky
jendaperl
Offline Send Email
Jul 9, 2008
3:59 pm
Messages 26236 - 26265 of 26718   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help