After a very long time thinking I decided to create a Yahoo Group with information on PHP&MySql. Their are quite a few of these sites and Forums around but the...
Dear all, i am quite new to perl. I am trying to run this one liner through cmd.exe on windows 2000 perl -e 'print "Matched!" if "This is my\nmulti-line...
It has been a while since I have done any perl scripting. I remember having this problem before and I am not sure if I actually figured it out or not. If I...
Hello Scott, just try it with s/^\[.*92;] \[/\[/ Thats well defined. mfg/br, christian IT Systembetreuer/Geschäftsfeld PCO Informationstechnologie Continental...
... You could use a reluctant qualifier: s/^\[.*?\]// Or specifically look for non-]: s/^\[[^]]*\]// ...and if you want the space gone, too, add \s* to the...
... Hash: SHA1 ... Most chat programs assumes that there is a server somewhere that the clients all connect to over a TCP/IP (or other protocol) socket. The ...
I am going to ask this again since I don't think that I asked what I needed to the first time. I tried the suggestions, but they did not do what I wanted. I...
... You need to use ()'s to capture the parts of the regular expression match that you're interested in keeping: For example: perl -w -e ' $line = "[the time...
I've posted this before a after several suggestion offline it was suggested to repost to all. I'm using Net::telnet to log into a remote server and once there...
Active Perl/Win XP I ran into what I thought was strange behavior with a glob and was hoping for an explanation. This first glob does what I expect - it...
... Yes, it is. You've asked for two patterns: one is c:/temp/globtest/ test and the other is *. If you want files that begin with the five characters t, e,...
Thank you to all who responded. It all makes sense now. I will strip whitespace off the end of the file name to make sure I'm only asking for one pattern. ...
First I have no control over the sudoers file, the customer would never allow a NOPASSWD entry in it. Secondly I've tried redirecting the command output into...
25457
John Francini
francini@...
Jul 4, 2007 3:38 pm
Sorry, that won't work. According to the Camel Book (Programming Perl): "If you want to glob filenames that might contain whitespace, you'll need to use the...
Hello All: Which one of the two versions of blessing is better? The 'two parameter' version. e.g. bless $objref, $class; Or the 'no parameter' version. What...
... aditi> Which one of the two versions of blessing is better? aditi> The 'two parameter' version. e.g. bless $objref, $class; aditi> Or the 'no parameter'...
After a very long time thinking I decided to create a Yahoo Group with information on PHP&MySql. Their are quite a few of these sites and Forums around but the...
25463
elavazhagan perl
elavazhagan.perl@...
Jul 7, 2007 5:57 am
Hia I got the diagnostic msg as follows while executing the mutate.pl.Kindlysuggest me how definding some of the variables will solve this error....... Use of...
25470
Kevin.Moseley@...
Jul 9, 2007 3:01 pm
I will be out of the office starting 07/09/2007 and will not return until 07/13/2007. If you need immediate assistance please contact John Belmonte @ ...
I am trying to pass a filehandle to a subroutine but cannot get the syntax right. I have been reading about using 'prototypes39; but something isn't sinking...
use strict; use diagnostics; open FH, ">mydat.txt"; sub pass_fh(*); pass_fh(\FH); sub pass_fh(*) { my $MYFILE = shift @_; print $MYFILE "Filehandle was...
25473
Arun Pandey
arunp@...
Jul 9, 2007 6:24 pm
I think the problem lies with your subroutine randomelement(), Thats because rand @array might be giving you a fractional index, instead of an integer index,...
You can also try IO::File; http://www.davidpashley.com/articles/perl-io-objects.html -- Nothing is as embarrassing as watching someone do something that you...
25475
Brad Lhotsky
brad@...
Jul 9, 2007 6:31 pm
Ick. Don't use subroutine prototyping. open( my $fh, 'w', 'mydata.txt' ) or die "unable to open file: $!\n"; pass_fh_($fh); sub pass_fh { my $fh = shift; } ...
Hello All: I have an array, @array = (0, undef, 2, undef); And I want different operations on numerical and undef array elements. Since numerically undef...