Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Yet another array problem

by Angharad (Pilgrim)
on Jul 29, 2005 at 15:14 UTC ( #479437=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<>)
    {
    ...
        @array = split;
    
    }
    
  2. or download this
    12 44 111 445
    
  3. or download this
    @line1 = $array[0];
    print "@line1\n"; # this works
    ...
    @line1 = split(/\t/);
    $var1 = $line1[0];
    print "$var1\n"; # this doesnt work
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://479437]
Approved by monkfan
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2020-05-31 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?