... you can try redirecting it. Not sure whether this works. -- Boga Srinivas System Engineer Yahoo! Ph : +91 8030516347 Mob : +91 9900859469 ... %% Although...
24678
tnas
nascimentoth...
Nov 30, 2006 5:57 pm
Hi all, When I use "package" in one file, is this word a namespace? I don't understand very well the namespace concept. Can someone help me? Thanks in advance....
24677
merlyn@...
merlynstoneh...
Nov 30, 2006 12:07 pm
... wang> Sed can't change the original file. wang> You could use redirect to save your results into a file. Or in-place editing, entirely within Perl, far...
24676
wang boqun
wang.iostream@...
Nov 30, 2006 11:37 am
Sed can't change the original file. You could use redirect to save your results into a file. ... [Non-text portions of this message have been removed]...
24675
Santosh Sugur
santosh_sugur
Nov 30, 2006 9:16 am
Thanks. Leslie I couldn't get that working either. Srinivas, since I have to replace a large number of files I am doing the following: $find . -type f | xargs...
24674
Boga Srinivas
bseenu@...
Nov 30, 2006 4:53 am
... Try out this -bash-2.05b$ cat test.pl #!/usr/bin/perl $var = "hello this is *"; -bash-2.05b$ sed -e 's/\*/\$var/g' test.pl #!/usr/bin/perl $var = "hello...
24673
leslie.polzer@...
Nov 29, 2006 6:21 pm
... From perlre: "You cannot include a literal $ or @ within a \Q sequence. An unescaped $ or @ interpolates the corresponding variable, while escaping will ...
24672
Santosh Sugur
santosh_sugur
Nov 29, 2006 3:23 pm
Hi Guys, I want to substitute a certain string (/*/) in a number of files which are again perl source files with a variable name instead of the asterix. I am...
24671
Jabir Ahmed
jabirahmed
Nov 29, 2006 5:55 am
Thanks Jenda, That was helpful. jab Jenda Krynicky <Jenda@...> wrote: From: Jabir Ahmed <jabirahmed@...> ... ...
24670
Jenda Krynicky
jendaperl
Nov 28, 2006 4:51 pm
To: <perl-beginner@yahoogroups.com> From: "Schelske, Steve K." <skschelske@...> Date sent: Tue, 28 Nov 2006 09:50:24...
24669
Jenda Krynicky
jendaperl
Nov 28, 2006 4:14 pm
Sancti stupiditas. Thanks for a good laugh. Jenda ===== Jenda@... === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are...
24668
Jenda Krynicky
jendaperl
Nov 28, 2006 4:02 pm
From: Jabir Ahmed <jabirahmed@...> ... Either it was affected by some other FH somewhere else in your script or you had a typo in the name of the...
24667
merlyn@...
merlynstoneh...
Nov 28, 2006 3:24 pm
... Schelske,> Where can I find out more about lexicals? I see "my $file" and don't Schelske,> know what it means. See the tutorials listed at learn.perl.org....
24666
Schelske, Steve K.
schelske.geo
Nov 28, 2006 3:02 pm
Where can I find out more about lexicals? I see "my $file" and don't know what it means. Thanks. ... From: perl-beginner@yahoogroups.com ...
24665
merlyn@...
merlynstoneh...
Nov 28, 2006 2:47 pm
... Jabir> eg: Jabir> sub writeFile{ Jabir> $file=shift; Jabir> $string=shift; Jabir> open (FH,">$file"); Where's your error checking? At a...
24664
priya sonam
priya_interv...
Nov 28, 2006 1:17 pm
www.CoolInterview.com - World's Largest Free Interview Questions Website Top 100 Perl Questions Asked in Actual Interviews What is CPAN ? What are the modules...
24662
Jabir Ahmed
jabirahmed
Nov 28, 2006 9:44 am
eg: sub writeFile{ $file=shift; $string=shift; open (FH,">$file"); print FH $string; close (FH); } This function created 0b files but when i replaced the FH...
24661
merlyn@...
merlynstoneh...
Nov 27, 2006 10:54 pm
... da5id> Just wondering how to search a string for non word characters that da5id> aren't spaces... da5id> \W is for a non-word character, \s would find a...
24660
da5id
da5id@...
Nov 27, 2006 9:19 pm
Just wondering how to search a string for non word characters that aren't spaces... \W is for a non-word character, \s would find a space, just wondering how...
24659
Lou Hernsen
luinrandir
Nov 26, 2006 6:55 pm
I would look at the commands substr,tr///,s/// or m/// read up on those commands... I won't DO your homework... but since I am a teacher (not of perl) I WILL...
24658
merlyn@...
merlynstoneh...
Nov 26, 2006 3:04 pm
... [homework problem deleted] le> How to do it in perl ? You should be asking your instructor this, not us. And to the rest of the people on the channel, DO...
24657
le_faquir
Nov 26, 2006 11:04 am
Hi, I have two files : File A contains the following : ((((9,(6,8)),((4,((3,2),1)),5)),(12,11)),(13,(7,10))); File B contains the follwoing: 1 A 2 B 3 C 4 D 5...
24656
Kelly Jones
kelly.terry.jones@...
Nov 26, 2006 7:10 am
I've used xinetd to set up a test nameserver on port 1024. Here's the Net::DNS Perl I'm using to say (falsely) that news.yahoo.com resolves to 10.1.2.3 with a...
24655
visnu_123b2
Nov 25, 2006 6:10 pm
i want to know some particular file is in open or close by using perl or C Note: file is already in read only mode so not able to ure r+ or r...
24654
visnu_123b2
Nov 25, 2006 6:01 pm
i want to know some particular file is opened or closed by using perl or c programme Note: file is already in read only mode so not able to ure r+ or r...
24653
Mike Southern
mikesouthern
Nov 23, 2006 4:15 pm
... I imagine a pert tutorial to be young, thrusting, somewhat pouty but with an inspirational confident innocence. The kind of tutorial that stands on the ...
24652
pickatutorial
Nov 23, 2006 3:49 pm
This site links to some very good pert tutorials and guides. http://www.pickatutorial.com thanks...
24651
alikim2008
Nov 21, 2006 11:25 pm
Hi All, I'm trying to create a network game where the server part is a cgi script and the client is a flash embedded into an html page. Data exchange is...
24650
Lou Hernsen
luinrandir
Nov 21, 2006 10:27 pm
Ahhh man I acxtually understand what you wrote! I wrote: @Keys = sort {$a cmp $b} substr(@Keys,9,); ... I wrote: Sort is the command and you set the area of...
24649
Rob Biedenharn
rab6687
Nov 21, 2006 7:59 pm
... @sorted = sort { substr($a,8) cmp substr($b,8) } @Keys The characters of a string are indexed from 0, so the 9th character is at index 8. -Rob Rob...