Just out of curiosity what would happen if you were to.. FILEHANDLE = <STDIN>; ... __________________________________ Do you Yahoo!? Exclusive Video Premiere -...
16981
Jeff 'japhy' ...
evilffej
Oct 31, 2003 11:13 pm
... do() doesn't run programs, it runs Perl files. do "this.pl"; And the \'s are messing you up. The string "..\$1\$292;$3" is literally ..$1$2$3 You need to...
16980
Electron One
thejoeshmoe
Oct 31, 2003 7:45 pm
Hello Everyone, I have this perl script that changes one type of files to perl files. It does this to many files. So I want to be able to check and verify that...
16979
Erik Tank
ert1994
Oct 31, 2003 5:47 pm
I do not have MacOS X so I am simply assuming that it would be the same as if you where on a RedHat Linux box (which I do have). If from the command prompt you...
16978
Damien Carbery
daymobrew
Oct 31, 2003 3:52 pm
... http://groups.google.com - whatever you need is here. I searched for "perl: warning: Setting locale failed." and got a bunch of hits. Some of the answers...
16977
Roel Sergeant
Roel.Sergeant@...
Oct 31, 2003 3:16 pm
Hi, Although perl seems to be working fine on my MacOS X box, at least as far as I know because I just started using it, it always give me the following...
16976
Gordon Stewart
gordy@...
Oct 31, 2003 12:54 pm
... It can be done - (although ive forgotten / rarely use the code)... with the READ command - To read some text into a variable - you can read in from as...
16975
merlyn@...
merlynstoneh...
Oct 31, 2003 12:03 pm
... Sreeram> Suppose I have a file which contains around 1000 lines of Sreeram> data.. I want to change only a single/few words (not more Sreeram>...
16974
Damien Carbery
daymobrew
Oct 31, 2003 9:40 am
... the file in that mode, then I must be able to read the contents and modify some contents. ... I want to change only a single/few words (not more than 10)...
16973
J.E. Cripps
cycmn@...
Oct 31, 2003 9:14 am
... No it isn't. I _think_ this is addressed in perlfaq5: How do I change one line in a file/delete a line in a file/insert a line in the middle of a...
16972
Sreeram B S
sreeramabsc
Oct 31, 2003 5:06 am
HI, We know that a file can be opened in these modes: (a) Read-only (b) Write-only (c) Append. Is there any way to open a file in read+write mode. i.e if I...
16971
J.E. Cripps
cycmn@...
Oct 30, 2003 10:13 pm
... Same as one redirects anything to a file, no? Look at page 13 of the Camel Book (Programming Perl) That's the 2nd edition. I've been trying to find the ...
16970
reza7310
Oct 30, 2003 9:06 pm
Hi I have a program that reads from STDIN, and I want to write all the data to a file, the info that I am reading can be more than 3-4 Mb and I dont want to...
16968
Damien Carbery
daymobrew
Oct 30, 2003 9:42 am
... is wrong) ... files ... script - ... I am assuming you mean 'what USER the script is running under' $< = $REAL_USER_ID = $UID The real user ID (UID) of...
16967
Gordon Stewart
gordonisnz
Oct 29, 2003 10:17 pm
I've gone for a loop & the -e function.. Find out last numbered file - & then create a new file (in sequence)... I would have had to do a loop anyways - on the...
16966
Brad Lhotsky
brad@...
Oct 29, 2003 9:04 pm
search.cpan.org. Select "Modules" Where it says "All", Net::POP3 is a part of libnet: http://search.cpan.org/~gbarr/libnet-1.17/ ... -- Brad Lhotsky...
16965
Gordon Stewart
gordonisnz
Oct 29, 2003 8:39 pm
... there is no ... I guess so.. On the web - my scripts work fine - adding / deleting / appending to files - for me - & other users... & same with my cron...
16964
syedraheemuddin
Oct 29, 2003 8:20 pm
thanks for your reply ahmed i not able to find the module.. please i need solve this...
16963
merlyn@...
merlynstoneh...
Oct 29, 2003 7:57 pm
... Gordon> $pa="/www/g/gorstew/cgi-bin/groups/$group/messages/*.txt"; Gordon> @ary = glob($pa); Gordon> which works perfectly well... Gordon> - But the rest...
16962
merlyn@...
merlynstoneh...
Oct 29, 2003 7:53 pm
... Sreeram> I think, even this would serve the purpose: Sreeram> $string="@array"; Sreeram> This would store the contents of the array in a single...
16961
Gordon Stewart
gordonisnz
Oct 29, 2003 7:00 pm
Hi there on my website, I have :- $pa="/www/g/gorstew/cgi-bin/groups/$group/messages/*.txt"; @ary = glob($pa); which works perfectly well... & in a CGI script...
16960
reza7310
Oct 29, 2003 6:57 pm
Hi, Does any one know if there is a way that you can read an email from you mailbox e.g. /var/mail/UserName, using modules like Mail::MboxParser or Mail::Mbox...
16959
Sreeram B S
sreeramabsc
Oct 29, 2003 5:30 am
I think, even this would serve the purpose: $string="@array"; This would store the contents of the array in a single string. After reading some mails.. I am a...
16958
Joe Catanzaro
joecatanzaro
Oct 28, 2003 9:04 pm
Awesome! Thanks, ... Joe Catanzaro joecatanzaro@......
16957
Erik Tank
ert1994
Oct 28, 2003 9:02 pm
$string = join('39;, @array); Here's the perldoc page on it: join EXPR,LIST Joins the separate strings of LIST into a single string with fields separated by the...
16956
Joe Catanzaro
joecatanzaro
Oct 28, 2003 8:58 pm
What's the easiest way to convert an array to a string? Obviously this doesn't work. $string = @array So I'm stuck doing this: foreach (@array) { $string .=...
16955
najamtaher
Oct 28, 2003 6:13 pm
thanks your reply as iam new in programming i not understanf much what u said ..if u need any detail about my server i can tell... i need only the way under...
16954
gwiz_32
Oct 28, 2003 5:36 pm
Hello, I have a perl script that will parse the desired event log and provide a list of requested event types. The problem I have is I need it to parse or...
16953
Franki
frankhauptle
Oct 28, 2003 3:25 pm
... Thanks Mr Japhy, I had considered that, but I wanted non Perl types to be able to add new resolutions easily. There are some benefits to doing it your...
16952
Jeff 'japhy' ...
evilffej
Oct 28, 2003 2:47 pm
... I think It'd be easier to use a hash %res, and use $Resolution as the keys: $res{$Resolution}++; -- Jeff "japhy" Pinyan japhy@......