vijay krishna wrote:
Hi,
Hello,
This might just be a little too trivial. I was just wondering if someone could give me a condition where I can traverse across a complete string and perform operation until I encounter End of Line. This is what I tried: if($string != \n) { do operations; } But this does not seem to be working. I also tried if($string != null) { do operations; } This does not seem to be working either. Can someone help me out?
$string =~ s/(.)/ do operations to $1 /ge; John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/