code_junkie

How to replace $*=1 with an alternative now $* is no longer supported

Nov 10th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. $* is no longer supported at migrate.pl line 380.
  2.  
  3. $* = 1;
  4. $/ = ':';
  5.  
  6. $cmd = $SSCMD . " Dir -I- "$proj"";
  7. $_ = `$cmd`;
  8.  
  9. # what this next expression does is to merge wrapped lines like:
  10. # $/DeviceAuthority/src/com/eclyptic/networkdevicedomain/deviceinterrogator/excep
  11. # tion:
  12. # into:
  13. # $/DeviceAuthority/src/com/eclyptic/networkdevicedomain/deviceinterrogator/exception:
  14. s/n((w*-*.*w*/*)+:)/$1/g;
  15.  
  16. $* = 0;
  17.  
  18. $cmd = $SSCMD . " get -GTM -W -I-Y -GL"$localdir" -V$version "$file" 2>&1";
  19. $out = `$cmd`;
  20.  
  21. # get rid of stupid VSS warning messages
  22. $* = 1;
  23. $out =~ s/n?Project.*rebuilt.//g;
  24. $out =~ s/n?File.*rebuilt.//g;
  25. $out =~ s/n.*was moved out of this project.*rebuilt.//g;
  26. $out =~ s/nContinue anyway.*Y//g;
  27. $* = 0;
  28.  
  29. $haystack =~ m/.../sm;
  30.  
  31. qr/(?ms-ix:$expr)/;
  32.  
  33. s/n((w*-*.*w*/*)+:)/$1/gsm;
  34.  
  35. s/n?Project.*rebuilt.//msg
Add Comment
Please, Sign In to add comment