RE: Did I violate?

2001-08-06 Thread Jason Ledbetter
27;ve wondered the same thing. -- Jason Ledbetter Data Conversion Specialist Perl Monk and Ascii Ninja Cadmus Professional Communications [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regex question with s///

2001-07-19 Thread Jason Ledbetter
Ergh. I've got this feeling I misunderstood your question. If so, forgive me. -- Jason Ledbetter Data Conversion Specialist Perl Monk and Ascii Ninja Cadmus Professional Communications [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: regex question with s///

2001-07-19 Thread Jason Ledbetter
for my $i (1 ... $num) { s/$pat/$pat+$i/; } Get me? -- Jason Ledbetter Data Conversion Specialist Perl Monk and Ascii Ninja Cadmus Professional Communications [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Dictionary

2001-07-19 Thread Jason Ledbetter
MAINLOOP; } But for that to work, you have to put a label on your main loop. I.e.: MAINLOOP: while ($tom = "yay") { Now, if your main loop is actually in a subroutine, use "return," just like in C. > sub find_entry { >my $href = shift; >my $key = shift; You c

Re: removing white spaces

2001-07-17 Thread Jason Ledbetter
//g; (or) $string =~ s/\s//g; The first would just gack the spaces, while the second would gack spaces, line returns, etc. The /g makes it global. Like I said, I'm sure there's a better way, but it's too early to think of one. Would tr// be a better choice? -- Jason Ledbetter Da