Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: parsing/munging problems

by OM_Zen (Scribe)
on Feb 26, 2003 at 15:40 UTC ( #238798=note: print w/ replies, xml ) Need Help??


in reply to parsing/munging problems

Hi ,

my $nm = 1; my $storenum; open (Conten , "a.dat"); open (OUTP ,">storenums.dat"); while (<Conten>){ chomp; (defined $nm) ? $storenum = split('',2): print OUTP "$_$storenum\n"; undef $nm; }


This is just a way to have the storenum with the other lines of the a.dat to the storenums.dat contents


Comment on Re: parsing/munging problems
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2014-09-17 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (101 votes), past polls