Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: putting text into array word by word

by tobyink (Canon)
on Jan 10, 2012 at 00:53 UTC ( [id://947099]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $/ = undef;
    my $string = <$filehandle>;
    
  2. or download this
    my $old_terminator = $/;
    $/ = undef;
    my $string = <$filehandle>;
    $/ = $old_terminator;
    
  3. or download this
    my $string;
    {
      local $/ = undef;
      $string = <$filehandle>;
    }
    
  4. or download this
    my $string;
    {
      local $/;
      $string = <$filehandle>;
    }
    
  5. or download this
    my $string = do {
      local $/;
      <$filehandle>;
    }
    
  6. or download this
    local $/ = <$filehandle>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://947099]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found