Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Yet another array problem

by Angharad (Pilgrim)
on Jul 29, 2005 at 15:14 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found