Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
The stupid question is the question not asked
 
PerlMonks  

Re: from $string to shining $string

by AidanLee (Chaplain)
on Mar 21, 2002 at 09:32 UTC ( [id://153328]=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 from $string to shining $string

The easiest way is to locally re-set your record separator. Normally this is set to newline, but you can set it to anything you like:
my @quotes = (); if( open(FILE,$myfile) ) { local $/ = '%'; @quotes = <FILE>; close FILE; } else { print "oops, i need to check why the file didn't open..."; }

Replies are listed 'Best First'.
Re: Re: from $string to shining $string
by gellyfish (Monsignor) on Mar 21, 2002 at 09:59 UTC

    print "oops, i need to check why the file didn't open...";

    Of course if you had printed the value of $! you wouldn't need to check why ;-}

    /J\

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://153328]
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.