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 to share photos of your group with the world? 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 26679 - 26718 of 26718   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
26679
Thank you Vidhut for your help, I would have only one wish left for the perl gurus: to implement a tiny "stop" tag into the line "find(sub {$name{$File:...
hwitche
Offline Send Email
Jul 18, 2009
5:15 am
26680
... hwitche> I would have only one wish left for the perl gurus: to implement a hwitche> tiny "stop" tag into the line "find(sub {$name{$File: :Find::name} = ...
merlyn@...
merlynstoneh...
Offline Send Email
Jul 18, 2009
2:29 pm
26681
... The *perlrun *document states that the numeric value of the *-0*command-line feature is an *octal* value. (You can use a hexadecimal value by using...
Jeff Pinyan
evilffej
Offline Send Email
Jul 18, 2009
6:57 pm
26682
... You never fail to let me know just how far away I am from being a perl guru or a beginner, for that matter Randall. But I always get hopeful the more your...
Jon Reynolds
jonr@...
Send Email
Jul 21, 2009
7:26 am
26683
Note: I'm new to using the mailing list - my apologies if I'm doing anything incorrectly. I'm having a problem with parsing some CSV data. I'm using ...
johnethompson2001
johnethompso...
Offline Send Email
Jul 22, 2009
6:08 pm
26684
Hi Randal an Jon, I respectfully insist: I still DREAM of a switch in: find(sub {$name{$File::Find::name} = -f;}, @ARGV); For now I have a construction with...
Hans Witschi
hwitche
Offline Send Email
Jul 26, 2009
4:33 am
26685
... Hans> Why so much coding when it could be achieved much easier, having somewhere Hans> deeper in the perl machine code a stop switch like "stay" in the ...
merlyn@...
merlynstoneh...
Offline Send Email
Jul 26, 2009
4:19 pm
26686
Let's say I have this snippet: $_ = "test"; my $thing = "test"; if (/^$thing/) { print "Yah!\n"; } else { print "booo...\n"; } It correctly prints "Yah!". If...
fooguy89
Offline Send Email
Jul 28, 2009
2:16 pm
26687
... You need to escape the meta-characters in $thing, but don't change $_. if( /^\Q$thing\E/ ){ See `perldoc perlre` and search for /\\Q/ You can also read...
Shawn H. Corey
shawnhcorey@...
Send Email
Jul 28, 2009
2:22 pm
26688
... fooguy89> $_="[test]"; fooguy89> my $thing = "[test]"; if (/^\Q$thing/) { .... } See \Q in the docs (I think it's in "perldoc perlre"). -- Randal L....
merlyn@...
merlynstoneh...
Offline Send Email
Jul 28, 2009
2:24 pm
26689
Why are you putting ^ in "/^$thing/" when you assigne $_ to "[test]" write (/$thing/) as $_ now begins with [ ;)...
call_ashutosh2003
call_ashutos...
Offline Send Email
Jul 28, 2009
3:01 pm
26690
You can try as below. my $_ = "[test]"; my $thing = "[test]"; $thing =~ s/\[/\\\[/g; if (/^$thing/) { print "Yah!\n"; } else { print "booo...\n"; } Sudhakaran....
sudha karan
sudhagkaran
Offline Send Email
Jul 28, 2009
3:47 pm
26691
... sudha> You can try as below. But \Q handles a lot more than [. And should be the preferred solution. -- Randal L. Schwartz - Stonehenge Consulting...
merlyn@...
merlynstoneh...
Offline Send Email
Jul 28, 2009
3:55 pm
26692
The \Q ... \E as suggested works great. Thanks all!...
fooguy89
Offline Send Email
Jul 28, 2009
5:56 pm
26693
Hi everyone, I am preparing a script to extract certain data from a file. The file is stored at the location specified in the variable $dir_path below. There...
nikhil deshpande
deshpandenik...
Offline Send Email
Jul 29, 2009
10:57 pm
26694
... nikhil> $dir_path = </abc/def/ghi/pp123456.2.3.4.jk.xyz>; What is this? Not Perl. Some other language? -- Randal L. Schwartz - Stonehenge Consulting...
merlyn@...
merlynstoneh...
Offline Send Email
Jul 29, 2009
11:32 pm
26695
On Wed, Jul 29, 2009 at 6:45 PM, nikhil ... Generally, the best practice is to use well-tested and thoroughly-designed modules to solve problems like these....
Jeff Soules
soules@...
Send Email
Jul 30, 2009
4:42 am
26696
Hi Nikhil, hope this will resolve your problem $dir_path = "/abc/def/ghi/pp123456.2.3.4.jk.xyz"; $filename = ($dir_path =~ /(.*)\/(.*)\/(.*)\/(.*)/); $filename...
Vivek Kumar
kumarvivek_2001
Offline Send Email
Aug 2, 2009
4:06 am
26697
On Windows, can a file that is deleted with the unlink command be recovered? If so, is there a way in Perl to delete a file so that the deleted file is...
schelske.geo
Offline Send Email
Aug 6, 2009
1:01 pm
26698
First of all - this is my first post. So just want to know if I'm doing everything right. Then I may suggest a workaround for that problem: - overwrite that...
Marcos Ramos
marcosjsramos
Offline Send Email
Aug 6, 2009
7:43 pm
26699
#!C:\Perl\bin\perl.exe print "enter your ...","\n"; $majid=<STDIN>; chomp($majid); $_="[test]"; if($majid eq $_) { print "yah","\n"; } else { print...
MAJID AGHA AMINI
amini4
Offline Send Email
Aug 6, 2009
8:42 pm
26700
excuse i think that you must use this function index string , $thing ... From: MAJID AGHA AMINI <amini4@...> Subject: Re: [PBML] Re: Regular Expression...
MAJID AGHA AMINI
amini4
Offline Send Email
Aug 6, 2009
9:25 pm
26701
"/^$thing/" Isn't that because you have $ (end line regex) just after ^ (line start reged) ? So it tries to match empty line followed by the word "thing". -- ...
Marcos Ramos
marcosjsramos
Offline Send Email
Aug 7, 2009
8:33 am
26702
From: Marcos Ramos <marcos.ramos@...> ... No. In this case Perl interpolates the variable into the regexp and uses the contents as part of the...
Jenda Krynicky
jendaperl
Offline Send Email
Aug 10, 2009
4:30 pm
26703
Hi, With respect to the question asked in [PBML] Digest Number 3109: I would like to say the command                   unlink $file will completely...
vivek kumar
kumarvivek_2001
Offline Send Email
Aug 19, 2009
6:22 am
26704
I'm using Net::SSH::Perl it my Perl script. The problem is because of OS upgrades and what other reasons I'm not aware of the SSH key gets changed from time to...
Dukelow, Don
dondukelow
Offline Send Email
Aug 27, 2009
6:09 pm
26705
... Dukelow,> I know how to fix it manually but I can't figure out how to get Net::SSH::Perl to see this error message so I can have Perl fix it. Dukelow,>...
merlyn@...
merlynstoneh...
Offline Send Email
Aug 27, 2009
7:47 pm
26715
Hi All, Using GD::Graph::pie, I have created a pie chart. But, I am unable to add a legend to the chart. Is there any provision to add legend to a pie chart ? ...
srinivas reddy
reddysrinivas_k
Offline Send Email
Oct 20, 2009
5:43 am
26717
Hi, I am using the IMAP::Client for automating the quota check for some of the users. My script was fairly straight, and I ran in to the below error, while...
Shameem Ahamed
shameem.ahamed
Online Now Send Email
Oct 29, 2009
5:56 pm
26718
# Display the IMAP resource usage on the user's post office server. use strict; use warnings FATAL => 'all'; use Cyrus::IMAP; use Getopt::Std; sub usage(;$); ...
lRobert Lee Binkley
leebinkley
Offline Send Email
Oct 29, 2009
7:08 pm
Messages 26679 - 26718 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