Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

solution wanted for break-on-spaces (w/specifics)

by perl-diddler (Chaplain)
on Oct 23, 2021 at 20:53 UTC ( [id://11137926]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    qr{((?>\\[^\\])|"(?:\\\\"|[^\\"]*)"|(?:'[^\\']*'|\S+))+}
    
  2. or download this
    # ln#, ans, test text
     1 3,This is simple.
    ...
    16 2,This 'is not unnice.'
    17 2,This "is not unnice."
    18 3,a "bb cc" d
    
  3. or download this
    ResByLn:{ln=>1, wanted=>3, got=>[3]},[" p  "]
    ResByLn:{ln=>2, wanted=>3, got=>[3]},[" p  "]
    ...
    ResByLn:{ln=>16, wanted=>2, got=>[2]},[" p  "]
    ResByLn:{ln=>17, wanted=>2, got=>[2]},[" p  "]
    ResByLn:{ln=>18, wanted=>3, got=>[3]},[" p  "]
    
  4. or download this
    #!/usr/bin/perl
    use P;
    ...
    17 2,This "is not unnice."
    18 3,a "bb cc" d
    __END__
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found