okay I have some input from the user in $spy an html document, 91 lines of text. I want to put it all on one line.
@spy = split(/$/m,$spy);
#That seems to split the variable into seperate lines
foreach $item (@spy) {
chop($item);
#should chop off the line returns right? doesn't seem to do anything.
push(@spies,$item);
}
print <<EOF;
@spies
EOF
printed out the other end I now have the html document the user gave me, completely unchanged. It should be printed out on all one line, however.
Any help, is as always, appreciated.
Daniel
@spy = split(/$/m,$spy);
#That seems to split the variable into seperate lines
foreach $item (@spy) {
chop($item);
#should chop off the line returns right? doesn't seem to do anything.
push(@spies,$item);
}
print <<EOF;
@spies
EOF
printed out the other end I now have the html document the user gave me, completely unchanged. It should be printed out on all one line, however.
Any help, is as always, appreciated.
Daniel