Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Help with split() function

by hipowls (Curate)
on Mar 19, 2008 at 10:19 UTC ( [id://674971]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!usr/bin/env perl
    
    use warnings;
    use strict;
    
  2. or download this
    open my $test_fh, '<', @ARGV or die "Can not open file $!\n";
    
  3. or download this
    while (<$test_fh>) {
    
  4. or download this
        my @line = split ();
        # if ($line[1] =~ /\wP\w/i);
        print "$line[1]";
    
  5. or download this
    close ($test_fh);
    
  6. or download this
    #!/net/perl/5.10.0/bin/perl
    
    ...
    operator
    Perl
    help
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-23 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found