Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Console output != file output

by mkk82 (Initiate)
on Sep 01, 2013 at 17:29 UTC ( #1051833=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (FH, 'out.txt');
       print FH "start" . $type . "end"; 
     close FH;
    
  2. or download this
    my $type = "";
    if ($msgString =~ m/Typ\s*:\s*(\w+)/i) {
     $type = $1;        
    ...
    }#if
    print "start" . $type . "end";
    
  3. or download this
    print "start" . $type . "end\n";
    print "$type\n";
    print "xxxxxxxxxxxxxxxxxxxxxxx$type\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1051833]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2021-04-15 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?