Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: spliting text!!

by duff (Parson)
on Mar 08, 2007 at 19:29 UTC ( [id://603886]=note: print w/replies, xml ) Need Help??


in reply to Re: spliting text!!
in thread spliting text!!

Just because I'm mildly annoyed at the width of your code, how about, instead of reading from the DATA file handle you do something like this:

my $line = '1234567890' x 20;
BTW, you may want to use /s on your pattern so that . matches any character since we don't know the exact contents of the OP's strings.

cheers,

Replies are listed 'Best First'.
Re^3: spliting text!!
by eric256 (Parson) on Mar 08, 2007 at 21:44 UTC

    If the code isn't wrapping you can goto "Display Settings" and uncheck 'Code Wrapping Off' so that perlmonks will wrap the code up for you. Just an FYI in case you (or someone else reading) didn't know.


    ___________
    Eric Hodges
      Well, I've tried that setting both ways, but right now the front page of SOPW is till too wide, although being here (replies section), width is fine....
      Any tips?

      Cheers
      Chris

        My SOPW is too wide only because someone used PRE tags that don't auto wrap. I'm guessing you are seeing the same effect.


        ___________
        Eric Hodges

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found