I have a variable like the one below. It contains nested braces pair. I'd like to create a regexp that changes the variable value to the string "hello world"....
Hi, I'm more familiar with PHP than Perl -however I have been looking for a wee while & cannot locate a php script to do this job. I have searched the web...
Sarah fox
sarahfox1969@...
Apr 1, 2007 11:02 am
25131
I have been struggling with a Regex and would appreciate some help. The regex needs to convert to underscores all the whitespace that is ... $line was...
... pair. ... #!c:/perl/bin/perl.exe -w use strict; use diagnostics; my $line = "hello {{ text {{innerbrace}} some text {{innerbrace2}} some text }} world"; ...
... Sarah> Hi, Sarah> I'm more familiar with PHP than Perl -however I have been looking for Sarah> a wee while & cannot locate a php script to do this job. ...
... This is dangerous: hooyar66> $line =~ /\"(.+)\"/; because if it *doesn't* match, then: hooyar66> my $str = $1; the $1 there is the *previous* $1. Bad....
Hey all, I wrote a script that counts how much code I've written in numbers of lines - just an excercise in recursion and perl - anyway I was wondering the...
da5id
da5id@...
Apr 5, 2007 6:38 pm
25141
... da5id> 1. Is there a recursive version of glob? So if I went glob("*.pl") it da5id> would traverse subdirectories as well? (This is where I used my da5id>...
Hi, its me again - re :- http://www.tt-solutions.com/products/yahoo2mbox I'm debugging the script (trying to make it go...) I I come accross some errors which...
... I've emailed him/her a few days ago.. - (no response as yet).... ... Thanks, I'll look at those modules... - I guess most things improve & get rid of...
Sarah fox
sarahfox1969@...
Apr 9, 2007 7:17 am
25156
Following is the scenario A text fie name "data.txt" and contains data like # hello phone # tango mango # bus truck 12 23 34 43 32 34 # # I write a program to...
open(FILE, 'data.txt') or die $!; while (<FILE>) { if (/^#/) { print 'This is line number ', $. , "\n" } } close FILE; شع2007-04-10£¬"Mirza Abdullah Jan"...
Huangj
redspid@...
Apr 10, 2007 3:09 am
25158
Hi, try this open IN, 'e:/test.txt' || die "cannot open the input file $!"; undef $/; $name=<IN>; @grep=$name=~/^#.*$/mg; print scalar(@grep); regards, ...
HI, I am using Solaris 10 and need help in writing a script to monitor memory usage to log a message if the usage exceeds 90%. Can some one help me with it or...
Hello, Mirza Abdullah JanIf you are running the perl script in Windows: Try this out. $path = "E:\data.txt"; print `findstr /n /i $Text "$path"` ; else try...
Hey Guys, I don't have any stake in this but I thought some of you might be interested. http://www.vulavala.com/forum/ It is a free web host that offers cPanel...
Hi, You can use ..split with the pattern /"/ and get rid of the quotes in the array@values. Something like this .....split(/"/,@values); should do. Rgds, Kiran...
Hey all, Just wondering syntactically how to use a function within the substitution operator. I'm essentially iterating through a series of keywords and trying...
da5id
da5id@...
Apr 15, 2007 1:13 pm
25172
... da5id> but when I try to use: da5id> s/\b($keyword)\b/uc $1/gi; da5id> I'm getting a literal "uc" rather than the results of the function. Any da5id>...
Hi, I have been studying perl now for about three weeks and I really am not understanding the variables regarding arrays and hash very well. I have an...
... Very cool - I like the option of using e as a regex evaluation option since I can envision myself needing to evaluate a lot as I do the substitution. I...
da5id
da5id@...
Apr 16, 2007 2:16 am
25175
Hi, If i want to store content of variable $name in cache for 1 days, how can i? Also how can i retrive same content from cache? Pls guide me on it. Prasanna...
From: "sleepygal33" <sleepdriver@...> ... It's generally better to declare variables only as you are about to start using them instead of upfront. In...
... sleepygal33> Hi, I have been studying perl now for about three weeks and I really sleepygal33> am not understanding the variables regarding arrays and hash...
Hi, I have perl - v5.8.4 and gcc version 3.4.6 installed on solaris 10. I need to connect to mysql using perl and installed DBI module for the purpose. But...
Hi, You can use cron function from shell programming and add a peace of perl code. Regards . Kiran Polu ... can help you to transform your business....
Kiran, Thanks for the response. I am actually interested in the "Peace od perl code" I know that 1. "sar -r 1" will give the free memory and free swap memory...