Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Pick Up Files and put contents into variables

by Vennis (Pilgrim)
on Aug 30, 2002 at 10:48 UTC ( [id://194059]=note: print w/replies, xml ) Need Help??


in reply to Pick Up Files and put contents into variables

*removed*

Ok, in my enthousiasm, i made a mistake providing a total uncommented code solution.

I support Giant's comment and the Homework node.

  • Comment on Re: Pick Up Files and put contents into variables

Replies are listed 'Best First'.
Re: Re: Pick Up Files and put contents into variables
by Anonymous Monk on Aug 30, 2002 at 11:31 UTC
    vennis,

    Is there any chance of unremoving that code? I have been trying to do this for bloody ages now and have got nowhere. I'm about to pull all of my hair out :(
      Well, basically, what you want is reading a file, splitting it into a array, using split, split on the seperating character, which, in your example would be an space.

      Then put the list into the desired variables.

      First read the directory using readdir, and finally remove them using unlink.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-19 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found