Hi everyone

I've just used split (with use: strict,warnings,diagnostics),
and from some reason during compilation (even before the terminal appeared) I got this warning:
"Line 1: The second parameter of split is a string,not an array
Do you want to continue?" (yes/no buttons)

Googling this didn't help much, I got that this may have something to do with the "use warnings" (which I wrote with an "s" in the end !),
or possibly something to do with the fact I'm using Padre.
But nothing helpful, not even any question/answer page.

By answering "yes" the code seems to run perfectly fine (including the split),
So just to mess around and see what will happen, I tried to substitute the string with an array, and got the same warning.
Also got the same warning when I tried to change the split pattern to another, and when I changed the split pattern from regex to plain string, and when the split was set into a string instead of array, its always the same weird warning !

My only non-neutralized split ($flnx is very much defined btw):
my @linx = split(/,/,$flnx);
Your thoughts ?
Thx

Update: Problem Resolved
Apparently is was a neutralized split one !
It was yesterday so I can't really find it now ^^ but it was something like this:
#my $something = split(/\.\n\d+: /,join(',',@somearray));
Yes with a # in the beginning ! soooo weird.

Regardless, thx 4 all the help attempts, appreciate it ^^

In reply to "2nd param of split in a string.." compilation warning by palkia

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.