good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
You may be making an error.by metadoktor (Hermit) |
on Dec 29, 2001 at 05:32 UTC ( [id://135047]=note: print w/replies, xml ) | Need Help?? |
I have no idea what you are doing wrong but this works.
#!/usr/local/bin/perl -w use strict; my ($str); $_="what\n is going\non here?\n"; print "Before $_\n"; s/\n//g; print "After $_\n"; It prints out the following:
Before what is going on here? After what is goingon here? There is no problem. Double check your code. :) metadoktor "The doktor is in."
In Section
Seekers of Perl Wisdom
|
|