Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Cannot find the error

by gudmo (Novice)
on Apr 03, 2020 at 14:19 UTC ( [id://11114995]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Cannot find the error
in thread Cannot find the error

I fixed it with, for some reason it went to this section after matching t the second time and cleared the array.
} $backin = shift(@section); undef(@section); push(@section,$backin); } } close ($fh); exit;

Replies are listed 'Best First'.
Re^5: Cannot find the error
by choroba (Cardinal) on Apr 03, 2020 at 14:38 UTC
    I'm not sure how it solves you problem, but a shorter way to write the same is
    @section = shift @section;
    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found