RE: substitution

2006-02-13 Thread Michael Gargiullo
The carrot is a special char, so if you want that to be included as a carrot and not a "start of string" marker, it too would have to be escaped. To do the replace that you wanted, I'd do the following. I have a text string = "^0176 ^0176" $_=s/\^0176\ \ \^0176/\^0176\ \ /; This will substitut

RE: substitution

2006-02-13 Thread Bowen, Bruce
That worked perfectly. Thanks, Bruce -Original Message- From: Michael Gargiullo [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 10:47 AM To: Bowen, Bruce Cc: beginners@perl.org Subject: RE: substitution The carrot is a special char, so if you want that to be included as a carro

single step - debug mode

2006-02-13 Thread Bowen, Bruce
I've read my Llama book and been out to goggle on this and while I've found data that suggests it is possible to step thru a script file, I've yet to figure out the exact command structure to accomplish this. I think it's file.pl -s arguments but that isn't working so far as I can see. I've

Re: single step - debug mode

2006-02-13 Thread Stephen Mayer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce, What you want to use is `perl -d file.pl ` Steve Bowen, Bruce wrote: > I've read my Llama book and been out to goggle on this and while I've found > data that suggests it is possible to step thru a script file, I've yet to > figure out th

Re: substitution

2006-02-13 Thread Hans Meier (John Doe)
Bowen, Bruce am Sonntag, 12. Februar 2006 22.31: > I have a text string = "^0176 ^0176" > > I have set $a = "^0176 ^0176"; > I have set $b = "^0176 "; > > I'm using text =~ s/$a/$b/g; > > And the text string doesn't change. I expected it to come out as "^0176 " > after the substitution. What

Re: single step - debug mode

2006-02-13 Thread Tom Phoenix
On 2/13/06, Bowen, Bruce <[EMAIL PROTECTED]> wrote: > I've read my Llama book and been out to goggle on this and while I've found > data that > suggests it is possible to step thru a script file, I've yet to figure out > the exact > command structure to accomplish this. I think it's > > file.p

Re: single step - debug mode

2006-02-13 Thread Hans Meier (John Doe)
Stephen Mayer am Montag, 13. Februar 2006 17.25: > Bruce, > > What you want to use is `perl -d file.pl ` ...and especially the manuals provided with every perl installation, which is a very valuable source for information. Some tips: $ perldoc perl # lists manuals. # search if a manual exist

Manipulating complex structures...

2006-02-13 Thread Leonardo Mokarzel Falcon
# Hi fellows... # I would like to handle a structure like this one: $struct = { HASH1 => { hash1 => {A => "a", B => "b"}, hash2 => {C => "c", D => "d"}}, HASH2 => { hash3 => [1,2,3,4,5]} }; # How do I go/* */through it

RE: Manipulating complex structures...

2006-02-13 Thread Timothy Johnson
Deal with hashes that are values of hashes as hash references, which is really what they are. As such, you will need to dereference them in order to use them. If you're going to be getting mixed data, and you're not sure whether the reference is to an array or a hash, you can use the ref() functi

BerkeleyDB

2006-02-13 Thread Tom Allison
I was trying out some jobs with the Berkeley DB and decided to move up from DB_File to BerkeleyDB. I don't need a lot of features, just speed. But I keep running into a "dumb" error that doesn't make any sense to me. untie attempted while 1 inner references still exist at ./dbm_test.pl line 31.

Re: substitution

2006-02-13 Thread John W. Krahn
Michael Gargiullo wrote: > The carrot is a special char, The carrot is an orange vegetable. s/carrot/caret/g; :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: BerkeleyDB

2006-02-13 Thread Hans Meier (John Doe)
Tom Allison am Dienstag, 14. Februar 2006 02.28: > I was trying out some jobs with the Berkeley DB and decided to move up from > DB_File to BerkeleyDB. I don't need a lot of features, just speed. > > But I keep running into a "dumb" error that doesn't make any sense to me. > untie attempted while

Re: BerkeleyDB

2006-02-13 Thread Tom Allison
Hans Meier (John Doe) wrote: Tom Allison am Dienstag, 14. Februar 2006 02.28: I was trying out some jobs with the Berkeley DB and decided to move up from DB_File to BerkeleyDB. I don't need a lot of features, just speed. But I keep running into a "dumb" error that doesn't make any sense to me

hi please clarify my doubts

2006-02-13 Thread DEVARAJA AP
HI i wrote a perlscript to generate a verilog code with instantiations .in this after instantiation, the ports getting as eg module_name name(.a(a),.b(b),...) but for connection sakeif want to connect a to some k and b to some p (say).here we wanted to ch