in reply to Re^3: Parsing CamelCase words
in thread Parsing CamelCase words

So would this work if($inp_line =~ /PDSCLI/ || $inp_line =~ /TTOOL/) { print $inp_line; $inp_line=/((?:A-Za-z*)+)/g; } inp_line would have CamelCase words?

Replies are listed 'Best First'.
Re^5: Parsing CamelCase words
by ikegami (Patriarch) on Jun 12, 2009 at 21:46 UTC

    [ Please use <c>..</c> around code and other preformatted text. ]

    No. //g would only work properly if it's evaluated in list context.

    You've proven quite poor at specifying what you want, which is probably why you are having problems implementing it. Try to spend some effort there.

    Starting now. $inp_line is a scalar. How do you want to place multiple words into a scalar?