recentpopularlog in

therobyouknow : delimiter   6

Re: Assign a delimiter variable -
my $delimiter = "\\"; # for dos
my @pathComponents = split( /\Q$delimiter/, $pathAndFile );

The /\Q is so obscure. Yet another example of perl's obscurity; other languages would just accept the delimiter as parameter without that nonsense
assign  delimiter  variable  perl  split  howto  define  programming  computing  solution  array  string  convert  separate  separation  separator  character  obscure  bizarre  example  linenoise  difficult  nonsense  reference 
october 2009 by therobyouknow

Copy this bookmark:

to read