Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Welcome to the Monastery
 
PerlMonks  

Re: Arrays and Files

by Mago (Parson)
on Feb 01, 2005 at 08:16 UTC ( [id://426884]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Arrays and Files


#!/usr/local/bin/perl -w use strict; my (@seq, $x); open (F, "< xyz") || die "Cannot open file\n"; while (<F>) { chomp($_); if (length($_) > 0) { $seq[$x] .= $_; } else { $x++; } }


Mago
mago@rio.pm.org


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://426884]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.